Skip to content

Commit 15f91f9

Browse files
fixup after review
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com>
1 parent 91e21a9 commit 15f91f9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/node_options.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,8 +2114,9 @@ void ParseNodeOptionsEnvVarBinding(const FunctionCallbackInfo<Value>& args) {
21142114
}
21152115

21162116
Local<Value> v8_result;
2117-
CHECK(ToV8Value(context, result).ToLocal(&v8_result));
2118-
args.GetReturnValue().Set(v8_result);
2117+
if (ToV8Value(context, result).ToLocal(&v8_result)) {
2118+
args.GetReturnValue().Set(v8_result);
2119+
}
21192120
}
21202121

21212122
void Initialize(Local<Object> target,

0 commit comments

Comments
 (0)