Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • 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
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.