summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug458838.js
blob: 59b55a50c99b506d349fabe023878af54dab5f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var escape;
function testBug458838() {
    var a = 1;
    function g() {
        var b = 0
            for (var i = 0; i < 10; ++i) {
                b += a;
            }
        return b;
    }

    return g();
}
assertEq(testBug458838(), 10);