summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1842617.js
blob: 1524d5733fd25e0cfd08f235eba2d9bb9d9d053d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// |jit-test| --baseline-eager

function foo(src) {
  try {
    evaluate(src);
  } catch {}
  Math = undefined;
}

foo(``);
foo(``);
foo(`var a = 0;`);
foo(`var b = 0;`);
foo(`var c = 0;`);
foo(`var d = 0;`);
foo(`undef();`);
foo(`{`);
foo(`
   gc();
   e = 0;
   gc();
`);
foo(`
   var f = 0;
   gc();
   delete Math;
`);
foo(`
   g = undefined;
`);