summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/stringSplitIntoArrayTest.js
blob: e7fdb097be09bfcfb8abf063e0de45ee2ed6b77f (plain)
1
2
3
4
5
6
7
8
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");