Debian Codegraph @

js/src/jit-test/tests/debug/bug1332493.js

raw
1 // |jit-test| test-also=--wasm-compiler=optimizing; exitstatus: 3; skip-if: !wasmDebuggingEnabled()
2 // Checking in debug frame is initialized properly during stack overflow.
3
4 var dbg;
5 (function () { dbg = new (newGlobal().Debugger)(this); })();
6
7 var m = new WebAssembly.Module(wasmTextToBinary(`(module
8 (import "a" "b" (result f64))
9 ;; function that allocated large space for locals on the stack
10 (func (export "f") ${Array(200).join("(param f64)")} (result f64) (call 0))
11 )`));
12 var f = () => i.exports.f();
13 var i = new WebAssembly.Instance(m, {a: {b: f}});
14 f();