summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/ion-debugger.js
blob: 13d09d83b6412d037389973a635d416ecfaee33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| skip-if: !wasmDebuggingEnabled()
var g = newGlobal({newCompartment: true});
g.parent = this;
g.eval("Debugger(parent).onExceptionUnwind = function () {};");
lfModule = new WebAssembly.Module(wasmTextToBinary(`
(module
  (export "f" (func $func0))
  (func $func0 (result i32)
    i32.const -1
  )
)
`));
processModule(lfModule);
function processModule(module, jscode) {
    for (let i = 0; i < 2; ++i) {
        imports = {}
        instance = new WebAssembly.Instance(module, imports);
    }
}