Skip to content

Commit cc8d705

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 7857604 commit cc8d705

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
@@ -553,7 +553,7 @@ void InitializeContextRuntime(Local<Context> context) {
553553
if (context->Global()->Get(context, intl_string).ToLocal(&intl_v) &&
554554
intl_v->IsObject()) {
555555
Local<Object> intl = intl_v.As<Object>();
556-
intl->Delete(context, break_iter_string).FromJust();
556+
intl->Delete(context, break_iter_string).Check();
557557
}
558558

559559
// Delete `Atomics.wake`
@@ -564,7 +564,7 @@ void InitializeContextRuntime(Local<Context> context) {
564564
if (context->Global()->Get(context, atomics_string).ToLocal(&atomics_v) &&
565565
atomics_v->IsObject()) {
566566
Local<Object> atomics = atomics_v.As<Object>();
567-
atomics->Delete(context, wake_string).FromJust();
567+
atomics->Delete(context, wake_string).Check();
568568
}
569569

570570
// Remove __proto__

0 commit comments

Comments
 (0)