summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/nonwritable-length-grow-capacity.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/arrays/nonwritable-length-grow-capacity.js')
-rw-r--r--js/src/jit-test/tests/arrays/nonwritable-length-grow-capacity.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arrays/nonwritable-length-grow-capacity.js b/js/src/jit-test/tests/arrays/nonwritable-length-grow-capacity.js
new file mode 100644
index 000000000..160689bea
--- /dev/null
+++ b/js/src/jit-test/tests/arrays/nonwritable-length-grow-capacity.js
@@ -0,0 +1,2 @@
+var arr = Object.defineProperty([], "length", { writable: false, value: 12 });
+arr[11] = true;