summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1263899.js
blob: 5392b89603492df811ca53ffe235d50b47a9d54a (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
try {
  evaluate(` 
    function runTestCase() $ERROR()
    function $ERROR() {
      throw Error
    }
    Object.defineProperty(this, "x", { value: 0 });
    setJitCompilerOption("baseline.warmup.trigger", 0);
    setJitCompilerOption("ion.warmup.trigger", 0)
  `)
  evaluate(`function f() {} f(x)`)
  runTestCase()
} catch (exc) {}
evaluate(`
  g = newGlobal({newCompartment: true})
  g.parent = this
  g.eval("(" + function() {
    Debugger(parent).onExceptionUnwind = function(frame) {
      frame.older
    }
  } + ")()")
  try { $ERROR() } catch(e){}
`)
try {
evaluate(`
  x ^= null;
  if (x = 1)
    $ERROR()
`);
} catch(e) {}