summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js')
-rw-r--r--js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js b/js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js
new file mode 100644
index 0000000000..e7fdb097be
--- /dev/null
+++ b/js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js
@@ -0,0 +1,9 @@
+function stringSplitIntoArrayTest()
+{
+ var s = "a,b"
+ var a = [];
+ for (var i = 0; i < 10; ++i)
+ a[i] = s.split(",");
+ return a.join();
+}
+assertEq(stringSplitIntoArrayTest(), "a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b");