We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a71cd7 commit 2146c88Copy full SHA for 2146c88
src/node.cc
@@ -4787,9 +4787,9 @@ Local<Context> NewContext(Isolate* isolate,
4787
auto intl_key = FIXED_ONE_BYTE_STRING(isolate, "Intl");
4788
auto break_iter_key = FIXED_ONE_BYTE_STRING(isolate, "v8BreakIterator");
4789
Local<Value> intl_v;
4790
- Local<Object> intl;
4791
if (context->Global()->Get(context, intl_key).ToLocal(&intl_v) &&
4792
- intl_v->ToObject(context).ToLocal(&intl)) {
+ intl_v->IsObject()) {
+ Local<Object> intl = intl_v.As<Object>();
4793
intl->Delete(context, break_iter_key).FromJust();
4794
}
4795
return context;
0 commit comments