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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index e333576aa5..b5abcfa585 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -1225,7 +1225,7 @@ struct MakeClass {
z->SetClassName(zlibString);
target->Set(env->context(),
zlibString,
- z->GetFunction(env->context()).ToLocalChecked()).FromJust();
+ z->GetFunction(env->context()).ToLocalChecked()).Check();
}
};
@@ -1241,7 +1241,7 @@ void Initialize(Local<Object> target,
target->Set(env->context(),
FIXED_ONE_BYTE_STRING(env->isolate(), "ZLIB_VERSION"),
- FIXED_ONE_BYTE_STRING(env->isolate(), ZLIB_VERSION)).FromJust();
+ FIXED_ONE_BYTE_STRING(env->isolate(), ZLIB_VERSION)).Check();
}
} // anonymous namespace