summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug-1649234-3.js
blob: 80df8b3ecf6a8f6e3d45f5c8d3164f4283ced3bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| exitstatus: 3; skip-if: getBuildConfiguration('pbl')

let debuggerRealm = newGlobal({newCompartment: true});
debuggerRealm.debuggee = this;
debuggerRealm.eval(`
  let dbg = new Debugger(debuggee);
  dbg.onDebuggerStatement = (frame) => null;  // terminate the debuggee
`);

Atomics.add(new Int32Array(1), 0, {
  valueOf() {
    debugger;
  }
});