summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/nestedExit2.js
blob: a868954f28c84c1a807beaa267f43dd17597b88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function bitsinbyte(b) {
    var m = 1, c = 0;
    while(m<0x100) {
        if(b & m) c++;
        m <<= 1;
    }
    return 1;
}
function TimeFunc(func) {
    var x,y;
    for(var y=0; y<256; y++) func(y);
}
function nestedExit2() {
    TimeFunc(bitsinbyte);
    return "ok";
}
assertEq(nestedExit2(), "ok");