summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testAliasedLet.js
blob: 3ab016999ba1f5d85751fc4fcf3c71ec0c145835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f() {
    {
        let x, y, z;
        eval('x = 1; y = 2; z = 3');
        for (var i = 0; i < 10000; ++i) {
            assertEq(x, 1);
            assertEq(y, 2);
            assertEq(z, 3);
        }
    }
}
f();