Skip to content

Commit e1ff57f

Browse files
authored
Merge pull request #329 from tschaub/errmap
fix: uvBinding.errmap is undefined in Nodejs v12+
2 parents c97e06f + dce115e commit e1ff57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const uvBinding = process.binding('uv');
77
*/
88
const codes = {};
99

10-
uvBinding.errmap.forEach(function(value, errno) {
10+
uvBinding.getErrorMap().forEach(function(value, errno) {
1111
const code = value[0];
1212
const message = value[1];
1313
codes[code] = {errno: errno, message: message};

0 commit comments

Comments
 (0)