summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/environments/lexical-shadows-global-var.js
blob: 9a8a8792b606acf245d2db64ace58c616bf386fe (plain)
1
2
3
4
5
6
7
8
9
this.x = "OK";

for (var i = 0; i < 50; i++) {
  assertEq(x, "OK");
  if (i === 40) {
    this.x = "FAIL";
    evaluate("let x = 'OK';");
  }
}