Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 0344ee1d9c9c4508bfb83cf102dd00667d264ee7..e58bf5abdb43b79699b32fea96f7fc6f340dfd08 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()); |
} |