summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js
blob: 7581e409e1ada014d52cf740eaac0d4c3c7337a1 (plain)
1
2
3
4
5
6
var proxy = new Proxy(['a', 'b', 'c'], {});
var a = [];
for each (x in proxy) {
  a.push(x);
}
assertEq(a.toString(), 'a,b,c');