summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug639808.js
blob: bf6b16c3d10f5ea1fa34241995343bd14379176d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function f() {
    var x = 1.23;
    var y = [].length;
    x = ++y;
    y - 1;
}
f();

function g(q) {
    var x = 1.23;
    var y = [].length;
    x = ++y;
    if (q)
      assertEq(y + 5, 6);
}
g(1);