summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testSubstring.js
blob: 5916c23ab06abbd3116961667aa4c3e72f86c36a (plain)
1
2
3
4
5
6
7
function testSubstring() {
    for (var i = 0; i < 5; ++i) {
        actual = "".substring(5);
    }
    return actual;
}
assertEq(testSubstring(), "");