Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Unified Diff: test/mjsunit/harmony/proxies-for.js

Issue 1148863002: Fix for-in for large indexes and indexes on proxies (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/for-in.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+})();
« no previous file with comments | « test/mjsunit/for-in.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698