summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug646968-3.js
blob: a02cb3f682cb2eb105c28400e54acc03d4f7edc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var s, v = "NOPE";

s = '';
for (let v = 0, x = v; x < 3; x++)
    s += x;
assertEq(s, '012');

s = '';
for (let v = 0, x = eval('v'); x < 3; x++)
    s += x;
assertEq(s, '012');

s = ''
for (let v = 0, x = function () { with ({}) return v; }(); x < 3; x++)
    s += x;
assertEq(s, '012');