summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_3/Array/regress-619970.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_3/Array/regress-619970.js')
-rw-r--r--js/src/tests/ecma_3/Array/regress-619970.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/tests/ecma_3/Array/regress-619970.js b/js/src/tests/ecma_3/Array/regress-619970.js
new file mode 100644
index 000000000..6ec94fc3b
--- /dev/null
+++ b/js/src/tests/ecma_3/Array/regress-619970.js
@@ -0,0 +1,8 @@
+function test() {
+ delete arguments[1];
+ return Array.prototype.join.call(arguments);
+}
+assertEq(test(1,2,3), "1,,3");
+Object.prototype[1] = "ponies!!!1";
+assertEq(test(1,2,3), "1,ponies!!!1,3");
+reportCompare(true,true);