Skip to content

Commit f0a9c53

Browse files
aduh95danielleadams
authored andcommitted
errors: refactor to use more primordials
PR-URL: #36651 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yash Ladha <[email protected]>
1 parent d2b9e7c commit f0a9c53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/errors.js

+2-1
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)