Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 7e0800b0d17f008b47db594a1a0a4ecf76e5ff1b..e1850c8adb7cc3164bc81ff4e7098544a7c2fea4 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1287,6 +1287,10 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction( |
isolate->initial_object_prototype(), "propertyIsEnumerable", |
Builtins::kObjectPrototypePropertyIsEnumerable, 1, false); |
+ Handle<JSFunction> object_value_of = SimpleInstallFunction( |
+ isolate->initial_object_prototype(), "valueOf", |
+ Builtins::kObjectPrototypeValueOf, 0, true); |
+ native_context()->set_object_value_of(*object_value_of); |
SimpleInstallGetterSetter(isolate->initial_object_prototype(), |
factory->proto_string(), |