Skip to content

Commit 4b4fb13

Browse files
danbevcodebytere
authored andcommitted
src: use Check() instead of FromJust in environment
This commit replaces FromJust() calls with Check() in places where the value that FromJust() returns is not used. PR-URL: #33706 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: David Carlier <[email protected]>
1 parent 04fa6d6 commit 4b4fb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/environment.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void InitializeContextRuntime(Local<Context> context) {
417417
if (context->Global()->Get(context, intl_string).ToLocal(&intl_v) &&
418418
intl_v->IsObject()) {
419419
Local<Object> intl = intl_v.As<Object>();
420-
intl->Delete(context, break_iter_string).FromJust();
420+
intl->Delete(context, break_iter_string).Check();
421421
}
422422

423423
// Delete `Atomics.wake`
@@ -428,7 +428,7 @@ void InitializeContextRuntime(Local<Context> context) {
428428
if (context->Global()->Get(context, atomics_string).ToLocal(&atomics_v) &&
429429
atomics_v->IsObject()) {
430430
Local<Object> atomics = atomics_v.As<Object>();
431-
atomics->Delete(context, wake_string).FromJust();
431+
atomics->Delete(context, wake_string).Check();
432432
}
433433

434434
// Remove __proto__

0 commit comments

Comments
 (0)