diff --git a/lib/zlib.js b/lib/zlib.js index ce68e9cd105de0..7742e68ad6eb75 100644 --- a/lib/zlib.js +++ b/lib/zlib.js @@ -346,7 +346,7 @@ function Zlib(opts, mode) { var self = this; this._hadError = false; - this._handle.onerror = function onErrorHandler(message, errno) { + this._handle.onerror = function(message, errno) { // there is no way to cleanly recover. // continuing only obscures problems. _close(self);