blob: 7fff829ab06940db29cacbee50d67ed668fedf73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// |jit-test| test-also=--wasm-compiler=optimizing; error: TestComplete
if (!wasmDebuggingEnabled())
throw "TestComplete";
(function createShortLivedDebugger() {
var g = newGlobal({newCompartment: true});
g.debuggeeGlobal = this;
g.eval("(" + function () {
dbg = new Debugger(debuggeeGlobal);
} + ")();");
})();
let module = new WebAssembly.Module(wasmTextToBinary('(module (func))'));
new WebAssembly.Instance(module);
gcslice(1000000);
new WebAssembly.Instance(module);
throw "TestComplete";
|