Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 0803522675fa7ca670b3248c73cf240a3bfb664b..0243a3a71e1a29b39ba889bb610a0208d8b73bff 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -472,6 +472,8 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) { |
factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
object_fun->set_initial_map(*object_function_map); |
object_function_map->set_constructor(*object_fun); |
+ object_function_map->set_unused_property_fields( |
+ JSObject::kInitialGlobalObjectUnusedPropertiesCount); |
native_context()->set_object_function(*object_fun); |