Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index fe4721617cd8a2ffa3be6f6448fdd28f5d876907..cbc8aceffa999db2b5ecec9a38d2fdce5c0a1151 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1148,6 +1148,10 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
native_context()->set_script_context_table(*script_context_table); |
InstallGlobalThisBinding(); |
+ // https://tc39.github.io/proposal-global |
+ Handle<String> global_name = factory->global_string(); |
+ JSObject::AddProperty(global_object, global_name, global_object, DONT_ENUM); |
+ |
{ // --- O b j e c t --- |
Handle<String> object_name = factory->Object_string(); |
Handle<JSFunction> object_function = isolate->object_function(); |