summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/saved-stacks/bug-1505387-dbg-eval-ion.js
blob: 64029d8cb0a72ea070fd36490c0c07e11a1d28d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| --ion-eager; --no-threads;
// This test ensures that debugger eval on an ion frame is able to correctly
// follow the debugger eval frame link to its parent frame.

var dbgGlobal = newGlobal({ newCompartment: true });
var dbg = new dbgGlobal.Debugger(globalThis);

for (var i = 0; i < 1; i++) {
  (() => {
    dbg.getNewestFrame().older.eval("saveStack()");
  })();
}