Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index c487961fe4a1ebf9bbaf80153ef979c403d3df33..68a4934bbb471aceede8092f04ea8e37e3fe20d0 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1266,6 +1266,10 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(object_function, factory->values_string(), |
Builtins::kObjectValues, 1, false); |
+ Handle<JSFunction> object_value_of = SimpleInstallFunction( |
Benedikt Meurer
2017/03/03 05:22:46
Just move this down until after "propertyIsEnumera
|
+ isolate->initial_object_prototype(), "valueOf", |
+ Builtins::kObjectPrototypeValueOf, 0, true); |
+ native_context()->set_object_value_of(*object_value_of); |
SimpleInstallFunction(isolate->initial_object_prototype(), |
"__defineGetter__", Builtins::kObjectDefineGetter, 2, |
true); |