Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index aaa0f3f7e521d4bf63263d48e658a8649ce7e429..0dfe3a3f7a4024f8d47b4b4162f821491f951833 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -355,6 +355,7 @@ void Bootstrapper::DetachGlobal(Handle<Context> env) { |
Handle<JSGlobalProxy> global_proxy(JSGlobalProxy::cast(env->global_proxy())); |
global_proxy->set_native_context(*factory->null_value()); |
SetObjectPrototype(global_proxy, factory->null_value()); |
+ global_proxy->map()->set_constructor(*factory->null_value()); |
} |