summaryrefslogtreecommitdiff
path: root/fxjse/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjse/context.cpp')
-rw-r--r--fxjse/context.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fxjse/context.cpp b/fxjse/context.cpp
index 3ecc3e2321..9c43830997 100644
--- a/fxjse/context.cpp
+++ b/fxjse/context.cpp
@@ -141,6 +141,10 @@ CFXJSE_Context* CFXJSE_Context::Create(
hObjectTemplate = v8::ObjectTemplate::New(pIsolate);
hObjectTemplate->SetInternalFieldCount(1);
}
+ hObjectTemplate->Set(
+ v8::Symbol::GetToStringTag(pIsolate),
+ v8::String::NewFromUtf8(pIsolate, "global", v8::NewStringType::kNormal)
+ .ToLocalChecked());
v8::Local<v8::Context> hNewContext =
v8::Context::New(pIsolate, NULL, hObjectTemplate);
v8::Local<v8::Context> hRootContext = v8::Local<v8::Context>::New(