Skip to content

Commit

Permalink
Merge pull request #72 from jbghoul/70-binding-codes
Browse files Browse the repository at this point in the history
fix on zlib polyfill: getting error code
  • Loading branch information
FredKSchott authored Nov 20, 2023
2 parents e4a0cfa + 3aac71e commit 3f79398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfills/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export function Zlib(opts, mode) {

var error = new Error(message);
error.errno = errno;
error.code = binding.codes[errno];
error.code = codes[errno];
self.emit('error', error);
};

Expand Down

0 comments on commit 3f79398

Please sign in to comment.