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