summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1257045.js
blob: a6437b308ec7fd59fbee872d3501393f35916934 (plain)
1
2
3
4
5
6
7
8
9
10
11
if (!wasmIsSupported())
  quit();

fullcompartmentchecks(true);
var g = newGlobal();
var dbg = new Debugger(g);
dbg.onNewScript = (function(script) {
    s = script;
})
g.eval(`new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary('(module (func) (export "" 0))')));`);
s.source;