diff options
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 4d4bd994f2..e2b37d86b1 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -124,7 +124,7 @@ class ZCtx : public WeakObject { static void Close(const FunctionCallbackInfo<Value>& args) { HandleScope scope(node_isolate); - ZCtx* ctx = UnwrapObject<ZCtx>(args.This()); + ZCtx* ctx = Unwrap<ZCtx>(args.This()); ctx->Close(); } @@ -134,7 +134,7 @@ class ZCtx : public WeakObject { HandleScope scope(node_isolate); assert(args.Length() == 7); - ZCtx* ctx = UnwrapObject<ZCtx>(args.This()); + ZCtx* ctx = Unwrap<ZCtx>(args.This()); assert(ctx->init_done_ && "write before init"); assert(ctx->mode_ != NONE && "already finalized"); @@ -343,7 +343,7 @@ class ZCtx : public WeakObject { assert((args.Length() == 4 || args.Length() == 5) && "init(windowBits, level, memLevel, strategy, [dictionary])"); - ZCtx* ctx = UnwrapObject<ZCtx>(args.This()); + ZCtx* ctx = Unwrap<ZCtx>(args.This()); int windowBits = args[0]->Uint32Value(); assert((windowBits >= 8 && windowBits <= 15) && "invalid windowBits"); @@ -382,7 +382,7 @@ class ZCtx : public WeakObject { assert(args.Length() == 2 && "params(level, strategy)"); - ZCtx* ctx = UnwrapObject<ZCtx>(args.This()); + ZCtx* ctx = Unwrap<ZCtx>(args.This()); Params(ctx, args[0]->Int32Value(), args[1]->Int32Value()); } @@ -390,7 +390,7 @@ class ZCtx : public WeakObject { static void Reset(const FunctionCallbackInfo<Value> &args) { HandleScope scope(node_isolate); - ZCtx* ctx = UnwrapObject<ZCtx>(args.This()); + ZCtx* ctx = Unwrap<ZCtx>(args.This()); Reset(ctx); SetDictionary(ctx); |