summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testString.js
blob: cb7e1e5b3a220f001f42606201fe2ab4c9b05e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function testString() {
    var q;
    for (var i = 0; i <= 9; ++i) {
        q = [];
        q.push(String(void 0));
        q.push(String(true));
        q.push(String(5));
        q.push(String(5.5));
        q.push(String("5"));
        q.push(String([5]));
    }
    return q.join(",");
}
assertEq(testString(), "undefined,true,5,5.5,5,5");