Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 32c0a7d2be277a7d4d1642b66965f5d925f88abe..1264ac0d4a3e778523622f4094c3dfd01300c7dd 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1156,8 +1156,6 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(object_function, factory->assign_string(), |
Builtins::kObjectAssign, 2, false); |
- SimpleInstallFunction(object_function, factory->create_string(), |
- Builtins::kObjectCreate, 2, true); |
SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", |
Builtins::kObjectGetOwnPropertyDescriptor, 2, false); |
SimpleInstallFunction(object_function, |
@@ -1174,6 +1172,11 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(object_function, "seal", |
Builtins::kObjectSeal, 1, false); |
+ Handle<JSFunction> object_create = |
+ SimpleInstallFunction(object_function, factory->create_string(), |
+ Builtins::kObjectCreate, 2, true); |
+ native_context()->set_object_create(*object_create); |
+ |
Handle<JSFunction> object_define_properties = SimpleInstallFunction( |
object_function, "defineProperties", |
Builtins::kObjectDefineProperties, 2, true); |