mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
errors: refactor to use more primordials
PR-URL: https://github.com/nodejs/node/pull/36651 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yash Ladha <yash@yashladha.in>
This commit is contained in:
parent
1dc4dea215
commit
dcd221ce69
|
|
@ -26,6 +26,7 @@ const {
|
|||
ErrorCaptureStackTrace,
|
||||
ErrorPrototypeToString,
|
||||
JSONStringify,
|
||||
MapPrototypeGet,
|
||||
MathAbs,
|
||||
MathMax,
|
||||
Number,
|
||||
|
|
@ -406,7 +407,7 @@ function uvErrmapGet(name) {
|
|||
if (!uvBinding.errmap) {
|
||||
uvBinding.errmap = uvBinding.getErrorMap();
|
||||
}
|
||||
return uvBinding.errmap.get(name);
|
||||
return MapPrototypeGet(uvBinding.errmap, name);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user