Skip to content

Commit

Permalink
errors: refactor to use more primordials
Browse files Browse the repository at this point in the history
PR-URL: #36651
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Yash Ladha <[email protected]>
  • Loading branch information
aduh95 authored and targos committed Jun 11, 2021
1 parent 1dc4dea commit dcd221c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const {
ErrorCaptureStackTrace,
ErrorPrototypeToString,
JSONStringify,
MapPrototypeGet,
MathAbs,
MathMax,
Number,
Expand Down Expand Up @@ -406,7 +407,7 @@ function uvErrmapGet(name) {
if (!uvBinding.errmap) {
uvBinding.errmap = uvBinding.getErrorMap();
}
return uvBinding.errmap.get(name);
return MapPrototypeGet(uvBinding.errmap, name);
}


Expand Down

0 comments on commit dcd221c

Please sign in to comment.