diff options
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 188c8ae9af..82debb438b 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -93,7 +93,7 @@ class ZCtx : public ObjectWrap { HandleScope scope; ZCtx *ctx = ObjectWrap::Unwrap<ZCtx>(args.This()); ctx->Close(); - return scope.Close(Undefined(node_isolate)); + return scope.Close(Undefined()); } @@ -253,8 +253,8 @@ class ZCtx : public ObjectWrap { return; } - Local<Integer> avail_out = Integer::New(ctx->strm_.avail_out, node_isolate); - Local<Integer> avail_in = Integer::New(ctx->strm_.avail_in, node_isolate); + Local<Integer> avail_out = Integer::New(ctx->strm_.avail_out); + Local<Integer> avail_in = Integer::New(ctx->strm_.avail_in); ctx->write_in_progress_ = false; @@ -279,8 +279,7 @@ class ZCtx : public ObjectWrap { "Invalid error handler"); HandleScope scope; Local<Value> args[2] = { String::New(msg), - Local<Value>::New(node_isolate, - Number::New(ctx->err_)) }; + Local<Value>::New(Number::New(ctx->err_)) }; MakeCallback(ctx->handle_, onerror_sym, ARRAY_SIZE(args), args); // no hope of rescue. @@ -342,7 +341,7 @@ class ZCtx : public ObjectWrap { Init(ctx, level, windowBits, memLevel, strategy, dictionary, dictionary_len); SetDictionary(ctx); - return Undefined(node_isolate); + return Undefined(); } static Handle<Value> Reset(const Arguments &args) { @@ -352,7 +351,7 @@ class ZCtx : public ObjectWrap { Reset(ctx); SetDictionary(ctx); - return Undefined(node_isolate); + return Undefined(); } static void Init(ZCtx *ctx, int level, int windowBits, int memLevel, |