Reviewers: ulan,

Description:
Make indexed intercepted methods enumerable by default.


[email protected]
BUG=162606


Please review this at https://codereview.chromium.org/11348222/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/objects.cc


Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index c53750edaa04fe7f8eed059e92bb06262e3b12f6..944c5a15e596a885beb807833bdcc40e1fad9508 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -3397,7 +3397,7 @@ PropertyAttributes JSObject::GetElementAttributeWithInterceptor(
       VMState state(isolate, EXTERNAL);
       result = getter(index, info);
     }
-    if (!result.IsEmpty()) return DONT_ENUM;
+    if (!result.IsEmpty()) return NONE;
   }

   return holder->GetElementAttributeWithoutInterceptor(


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to