Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 5c77aa4e95a8d2d22a112838e376cc1ee45039ba..032e08b408e3b6f31163b961cb610011ce8714c6 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1161,6 +1161,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
object_function, "getPrototypeOf", Builtins::kObjectGetPrototypeOf, |
1, false); |
native_context()->set_object_get_prototype_of(*object_get_prototype_of); |
+ SimpleInstallFunction(object_function, "setPrototypeOf", |
+ Builtins::kObjectSetPrototypeOf, 2, false); |
Handle<JSFunction> object_is_extensible = SimpleInstallFunction( |
object_function, "isExtensible", Builtins::kObjectIsExtensible, |