Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 1106) |
+++ src/runtime.cc (working copy) |
@@ -4676,6 +4676,9 @@ |
} |
CONVERT_ARG_CHECKED(JSObject, obj, 0); |
+ if (obj->IsJSGlobalProxy()) { |
+ obj = Handle<JSObject>(JSObject::cast(obj->GetPrototype())); |
+ } |
int n = obj->NumberOfLocalProperties(static_cast<PropertyAttributes>(NONE)); |
Handle<FixedArray> names = Factory::NewFixedArray(n); |
obj->GetLocalPropertyNames(*names); |