Chromium Code Reviews| Index: src/bootstrapper.cc |
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
| index c487961fe4a1ebf9bbaf80153ef979c403d3df33..a8ff9d4ffd7318f5d8781b81d9dcb7b7112109fa 100644 |
| --- a/src/bootstrapper.cc |
| +++ b/src/bootstrapper.cc |
| @@ -1266,6 +1266,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
| SimpleInstallFunction(object_function, factory->values_string(), |
| Builtins::kObjectValues, 1, false); |
| + SimpleInstallFunction(isolate->initial_object_prototype(), "valueOf", |
| + Builtins::kObjectPrototypeValueOf, 0, true); |
|
Benedikt Meurer
2017/03/01 20:00:26
We still use the object_value_of field of the nati
rongjie
2017/03/02 01:16:44
Done.
|
| SimpleInstallFunction(isolate->initial_object_prototype(), |
| "__defineGetter__", Builtins::kObjectDefineGetter, 2, |
| true); |