bug1331064.js (543B)
1 // |jit-test| test-also=--wasm-compiler=optimizing; exitstatus: 3; skip-if: !wasmDebuggingEnabled() 2 3 load(libdir + "asserts.js"); 4 5 var g = newGlobal(); 6 g.parent = this; 7 g.eval("new Debugger(parent).onExceptionUnwind = function () { some_error; };"); 8 9 var module = new WebAssembly.Module(wasmTextToBinary(` 10 (module 11 (import $imp "a" "b" (result i32)) 12 (func $call (result i32) (call 0)) 13 (export "call" $call) 14 )`)); 15 16 var instance = new WebAssembly.Instance(module, { a: { b: () => { 17 some_other_error; 18 }}}); 19 instance.exports.call();