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