Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0a9c53

Browse filesBrowse files
aduh95danielleadams
authored andcommitted
errors: refactor to use more primordials
PR-URL: #36651 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yash Ladha <yash@yashladha.in>
1 parent d2b9e7c commit f0a9c53
Copy full SHA for f0a9c53

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎lib/internal/errors.js‎

Copy file name to clipboardExpand all lines: lib/internal/errors.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const {
2626
ErrorCaptureStackTrace,
2727
ErrorPrototypeToString,
2828
JSONStringify,
29+
MapPrototypeGet,
2930
MathAbs,
3031
MathMax,
3132
Number,
@@ -404,7 +405,7 @@ function uvErrmapGet(name) {
404405
if (!uvBinding.errmap) {
405406
uvBinding.errmap = uvBinding.getErrorMap();
406407
}
407-
return uvBinding.errmap.get(name);
408+
return MapPrototypeGet(uvBinding.errmap, name);
408409
}
409410

410411
const captureLargerStackTrace = hideStackFrames(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.