summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1168667.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1168667.js')
-rw-r--r--js/src/jit-test/tests/basic/bug1168667.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1168667.js b/js/src/jit-test/tests/basic/bug1168667.js
new file mode 100644
index 000000000..ce3a7fc4d
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug1168667.js
@@ -0,0 +1,6 @@
+for each(var x in [{n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1},
+ {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1},
+ {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1}, {n: 1}]) {
+ x[0] = 0;
+ Object.freeze(x);
+}