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.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index 8b257cf0d4..6b050fcb40 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -896,10 +896,13 @@ void Initialize(Local<Object> target,
Local<String> zlibString = FIXED_ONE_BYTE_STRING(env->isolate(), "Zlib");
z->SetClassName(zlibString);
- target->Set(zlibString, z->GetFunction(env->context()).ToLocalChecked());
+ target->Set(env->context(),
+ zlibString,
+ z->GetFunction(env->context()).ToLocalChecked()).FromJust();
- target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "ZLIB_VERSION"),
- FIXED_ONE_BYTE_STRING(env->isolate(), ZLIB_VERSION));
+ target->Set(env->context(),
+ FIXED_ONE_BYTE_STRING(env->isolate(), "ZLIB_VERSION"),
+ FIXED_ONE_BYTE_STRING(env->isolate(), ZLIB_VERSION)).FromJust();
}
} // anonymous namespace