diff --git a/src/node.cc b/src/node.cc index 88e353656b3452..b780d526531d7a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -4787,9 +4787,9 @@ Local NewContext(Isolate* isolate, auto intl_key = FIXED_ONE_BYTE_STRING(isolate, "Intl"); auto break_iter_key = FIXED_ONE_BYTE_STRING(isolate, "v8BreakIterator"); Local intl_v; - Local intl; if (context->Global()->Get(context, intl_key).ToLocal(&intl_v) && - intl_v->ToObject(context).ToLocal(&intl)) { + intl_v->IsObject()) { + Local intl = intl_v.As(); intl->Delete(context, break_iter_key).FromJust(); } return context;