Debian Codegraph @

js/src/jit-test/tests/wasm/ion-debugger.js

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