зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1530641: Add test case; r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D21506 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4ee330b62d
Коммит
f1a11814b4
|
@ -0,0 +1,19 @@
|
|||
// |jit-test| skip-if: !wasmDebugSupport(); exitstatus:3
|
||||
|
||||
function userError() {};
|
||||
|
||||
let g = newGlobal({newCompartment: true});
|
||||
let dbg = new Debugger(g);
|
||||
|
||||
g.eval(`
|
||||
var wasm = wasmTextToBinary('(module (func (export "test") (nop)))');
|
||||
var m = new WebAssembly.Instance(new WebAssembly.Module(wasm));
|
||||
`);
|
||||
|
||||
dbg.onEnterFrame = function(frame) {
|
||||
if (frame.type == "wasmcall") {
|
||||
throw new userError()
|
||||
}
|
||||
}
|
||||
|
||||
result = g.eval("m.exports.test()");
|
Загрузка…
Ссылка в новой задаче