Debian Codegraph @

js/src/jit-test/tests/wasm/regress/debug-osr.js

raw
1 // |jit-test| skip-if: !wasmDebuggingEnabled()
2 g = newGlobal({newCompartment: true});
3 g.parent = this;
4 g.eval("(" + function() {
5 Debugger(parent).onExceptionUnwind = function(frame) {
6 frame.older
7 }
8 } + ")()");
9
10 let o = {};
11
12 let func = wasmEvalText(`
13 (module (import "" "inc" (func $imp)) (func) (func $start (call $imp)) (start $start) (export "" (func $start)))
14 `, { "": { inc: function() { o = o.set; } } }).exports[""];
15
16 assertErrorMessage(func, TypeError, /(is|of) undefined/);