Don't bypass the global proxy as the global object should never escape into JS
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 Jun 2014 10:42:49 +0000 (10:42 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 23 Jun 2014 10:42:49 +0000 (10:42 +0000)
BUG=
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/334233003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21930 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/runtime.cc

index dcb41b3..c10bcf3 100644 (file)
@@ -10816,13 +10816,6 @@ RUNTIME_FUNCTION(Runtime_DebugGetPropertyDetails) {
     isolate->set_context(*isolate->debug()->debugger_entry()->GetContext());
   }
 
-  // Skip the global proxy as it has no properties and always delegates to the
-  // real global object.
-  if (obj->IsJSGlobalProxy()) {
-    obj = Handle<JSObject>(JSObject::cast(obj->GetPrototype()));
-  }
-
-
   // Check if the name is trivially convertible to an index and get the element
   // if so.
   uint32_t index;