Index: test/mjsunit/harmony/proxies-for.js |
diff --git a/test/mjsunit/harmony/proxies-for.js b/test/mjsunit/harmony/proxies-for.js |
index d0f2a022fd176b1f548e69cbf8bc5edc7651a9d7..ea162496ba483f8d46739f3dff6386e1d989bc07 100644 |
--- a/test/mjsunit/harmony/proxies-for.js |
+++ b/test/mjsunit/harmony/proxies-for.js |
@@ -165,4 +165,13 @@ TestForInThrow(Proxy.create({ |
get: function(pr, pk) { |
return function() { throw "myexn" } |
} |
-})) |
+})); |
+ |
+(function() { |
+ var p = Proxy.create({enumerate:function() { return [0]; }}); |
+ var o = [0]; |
+ o.__proto__ = p; |
+ var keys = []; |
+ for (var k in o) { keys.push(k); }; |
+ assertEquals(["0"], keys); |
+})(); |