summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testArraySpeciesDelete.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testArraySpeciesDelete.js')
-rw-r--r--js/src/jit-test/tests/basic/testArraySpeciesDelete.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testArraySpeciesDelete.js b/js/src/jit-test/tests/basic/testArraySpeciesDelete.js
new file mode 100644
index 000000000..8677d2254
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testArraySpeciesDelete.js
@@ -0,0 +1,5 @@
+delete Array[Symbol.species];
+var a = [1, 2, 3].slice(1);
+assertEq(a.length, 2);
+assertEq(a[0], 2);
+assertEq(a[1], 3);