summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/environments/delete-global-var.js
blob: 03b128affe440bc9e786dbd230712fb4d64abb9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
let assert = assertEq;

this.x = "OK";
this.y = "FAIL";

for (let i = 0; i < 50; i++) {
  assert(x, "OK");
  if (i === 40) {
    this.x = "FAIL";
    delete this.x;
    this.x = "OK";
  }
}