summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js')
-rw-r--r--js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js b/js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js
new file mode 100644
index 000000000..7581e409e
--- /dev/null
+++ b/js/src/jit-test/tests/proxy/testDirectProxyWithForEach.js
@@ -0,0 +1,6 @@
+var proxy = new Proxy(['a', 'b', 'c'], {});
+var a = [];
+for each (x in proxy) {
+ a.push(x);
+}
+assertEq(a.toString(), 'a,b,c');