diff options
Diffstat (limited to 'js/src/jit-test/tests/wasm/regress/savedframe-lookup-in-wasm.js')
-rw-r--r-- | js/src/jit-test/tests/wasm/regress/savedframe-lookup-in-wasm.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/wasm/regress/savedframe-lookup-in-wasm.js b/js/src/jit-test/tests/wasm/regress/savedframe-lookup-in-wasm.js new file mode 100644 index 0000000000..6527c78efa --- /dev/null +++ b/js/src/jit-test/tests/wasm/regress/savedframe-lookup-in-wasm.js @@ -0,0 +1,17 @@ +g = newGlobal({newCompartment: true}); +g.parent = this; +g.eval(`(function() { + Debugger(parent).onExceptionUnwind = function(frame) { return frame.eval(""); } +})()`); + +var module = new WebAssembly.Module(wasmTextToBinary(` + (module (import $imp "" "inc") (func) (func $start (call $imp)) (start $start) (export "" (func $start))) +`)); + +var imports = { + "": { + inc: function() { undefined_function(); } + } +}; + +new WebAssembly.Instance(module, imports).exports[''](); |