| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7a71cd7 commit 2146c88
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4787,9 +4787,9 @@ Local<Context> NewContext(Isolate* isolate, | |||
| 4787 | 4787 | auto intl_key = FIXED_ONE_BYTE_STRING(isolate, "Intl"); | |
| 4788 | 4788 | auto break_iter_key = FIXED_ONE_BYTE_STRING(isolate, "v8BreakIterator"); | |
| 4789 | 4789 | Local<Value> intl_v; | |
| 4790 | - Local<Object> intl; | ||
| 4791 | 4790 | if (context->Global()->Get(context, intl_key).ToLocal(&intl_v) && | |
| 4792 | - intl_v->ToObject(context).ToLocal(&intl)) { | ||
| 4791 | + intl_v->IsObject()) { | ||
| 4792 | + Local<Object> intl = intl_v.As<Object>(); | ||
| 4793 | 4793 | intl->Delete(context, break_iter_key).FromJust(); | |
| 4794 | 4794 | } | |
| 4795 | 4795 | return context; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments