summaryrefslogtreecommitdiff
path: root/src/node_zlib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r--src/node_zlib.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index 5b8024330b..f59e60015a 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -178,7 +178,7 @@ class ZCtx : public AsyncWrap {
} else {
CHECK(Buffer::HasInstance(args[1]));
Local<Object> in_buf;
- in_buf = args[1]->ToObject();
+ in_buf = args[1]->ToObject(args.GetIsolate());
in_off = args[2]->Uint32Value();
in_len = args[3]->Uint32Value();
@@ -187,7 +187,7 @@ class ZCtx : public AsyncWrap {
}
CHECK(Buffer::HasInstance(args[4]));
- Local<Object> out_buf = args[4]->ToObject();
+ Local<Object> out_buf = args[4]->ToObject(args.GetIsolate());
out_off = args[5]->Uint32Value();
out_len = args[6]->Uint32Value();
CHECK(Buffer::IsWithinBounds(out_off, out_len, Buffer::Length(out_buf)));
@@ -420,7 +420,7 @@ class ZCtx : public AsyncWrap {
char* dictionary = nullptr;
size_t dictionary_len = 0;
if (args.Length() >= 5 && Buffer::HasInstance(args[4])) {
- Local<Object> dictionary_ = args[4]->ToObject();
+ Local<Object> dictionary_ = args[4]->ToObject(args.GetIsolate());
dictionary_len = Buffer::Length(dictionary_);
dictionary = new char[dictionary_len];