summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/write-frozen-dense.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/write-frozen-dense.js')
-rw-r--r--js/src/jit-test/tests/basic/write-frozen-dense.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/write-frozen-dense.js b/js/src/jit-test/tests/basic/write-frozen-dense.js
new file mode 100644
index 000000000..7e09c330b
--- /dev/null
+++ b/js/src/jit-test/tests/basic/write-frozen-dense.js
@@ -0,0 +1,8 @@
+var t = [4];
+var stop;
+Object.freeze(t);
+do {
+ stop = inIon();
+ t[0] = 2;
+ assertEq(t[0], 4);
+} while (!stop);