Debian Codegraph @

js/src/jit-test/tests/wasm/regress/savedframe-lookup-in-wasm.js

raw
1 g = newGlobal({newCompartment: true});
2 g.parent = this;
3 g.eval(`(function() {
4 Debugger(parent).onExceptionUnwind = function(frame) { return frame.eval(""); }
5 })()`);
6
7 var module = new WebAssembly.Module(wasmTextToBinary(`
8 (module (import $imp "" "inc") (func) (func $start (call $imp)) (start $start) (export "" (func $start)))
9 `));
10
11 var imports = {
12 "": {
13 inc: function() { undefined_function(); }
14 }
15 };
16
17 new WebAssembly.Instance(module, imports).exports['']();