Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 96c52ef

Browse files
TimothyGuaddaleax
authored andcommitted
src: fix NewContext for --without-intl
PR-URL: nodejs/node#16251 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2d31ac2 commit 96c52ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/node.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4955,9 +4955,9 @@ Local<Context> NewContext(Isolate* isolate,
49554955
auto intl_key = FIXED_ONE_BYTE_STRING(isolate, "Intl");
49564956
auto break_iter_key = FIXED_ONE_BYTE_STRING(isolate, "v8BreakIterator");
49574957
Local<Value> intl_v;
4958-
Local<Object> intl;
49594958
if (context->Global()->Get(context, intl_key).ToLocal(&intl_v) &&
4960-
intl_v->ToObject(context).ToLocal(&intl)) {
4959+
intl_v->IsObject()) {
4960+
Local<Object> intl = intl_v.As<Object>();
49614961
intl->Delete(context, break_iter_key).FromJust();
49624962
}
49634963
return context;

0 commit comments

Comments
 (0)