summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testStringConstructorWithExtraArg.js
blob: b4986c53f961520d9a037c04d360d8c1294f308b (plain)
1
2
3
4
5
6
function testStringConstructorWithExtraArg() {
    for (let i = 0; i < 5; ++i)
        new String(new String(), 2);
    return "ok";
}
assertEq(testStringConstructorWithExtraArg(), "ok");