diff --git a/src/api/environment.cc b/src/api/environment.cc index 60cc016b7702a9..5526859e551c10 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -417,7 +417,7 @@ void InitializeContextRuntime(Local context) { if (context->Global()->Get(context, intl_string).ToLocal(&intl_v) && intl_v->IsObject()) { Local intl = intl_v.As(); - intl->Delete(context, break_iter_string).FromJust(); + intl->Delete(context, break_iter_string).Check(); } // Delete `Atomics.wake` @@ -428,7 +428,7 @@ void InitializeContextRuntime(Local context) { if (context->Global()->Get(context, atomics_string).ToLocal(&atomics_v) && atomics_v->IsObject()) { Local atomics = atomics_v.As(); - atomics->Delete(context, wake_string).FromJust(); + atomics->Delete(context, wake_string).Check(); } // Remove __proto__