summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/nonEmptyStack1.js
blob: b3b260386873c9f996db537eee9163741affdc0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function nonEmptyStack1Helper(o, farble) {
    var a = [];
    var j = 0;
    for (var i in o)
        a[j++] = i;
    return a.join("");
}

function nonEmptyStack1() {
    return nonEmptyStack1Helper({a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8}, "hi");
}

assertEq(nonEmptyStack1(), "abcdefgh");