Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index d372494250ab6ccc26f0a2b7798c8eef6323b9fc..2ce4a73e17bf6908db39fe2baa67c282e3cdf95e 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1098,6 +1098,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
Handle<JSFunction> object_freeze = SimpleInstallFunction( |
object_function, "freeze", Builtins::kObjectFreeze, 1, false); |
native_context()->set_object_freeze(*object_freeze); |
+ SimpleInstallFunction(object_function, "getOwnPropertyNames", |
+ Builtins::kObjectGetOwnPropertyNames, 1, false); |
SimpleInstallFunction(object_function, "getOwnPropertySymbols", |
Builtins::kObjectGetOwnPropertySymbols, 1, false); |
Handle<JSFunction> object_is_extensible = |