Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index e484c80203fe6e9b4817c3215cc18ee95a7887e3..17c499a558dda82555c709e99f6b4e914e258c01 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -948,6 +948,8 @@ Handle<JSGlobalObject> Genesis::CreateNewGlobals( |
js_global_object_function = ApiNatives::CreateApiFunction( |
isolate(), js_global_object_constructor, factory()->the_hole_value(), |
ApiNatives::GlobalObjectType); |
+ if (js_global_object_template->immutable_proto()) |
adamk
2016/11/04 17:39:19
I think you can do this check inside ApiNatives::C
Dan Ehrenberg
2016/11/04 17:56:36
Done
|
+ js_global_object_function->initial_map()->set_immutable_proto(true); |
} |
js_global_object_function->initial_map()->set_is_prototype_map(true); |