Skip to content

Commit efa8086

Browse files
committed
Review update. Use the overload of Set()
1 parent a83fc25 commit efa8086

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node_crypto.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ void ThrowCryptoError(Environment* env,
283283
if (err_buf) {
284284
char tmpStr[256] = { };
285285
ERR_error_string_n(err_buf, tmpStr, sizeof(tmpStr));
286-
errorStack->Set(i, String::NewFromUtf8(env->isolate(), tmpStr,
286+
errorStack->Set(env->context(), i,
287+
String::NewFromUtf8(env->isolate(), tmpStr,
287288
v8::NewStringType::kNormal)
288-
.ToLocalChecked());
289+
.ToLocalChecked()).FromJust();
289290
}
290291
es->top -= 1;
291292
}

0 commit comments

Comments
 (0)