Bug 1530641: Add test case; r=bhackett
authorBenjamin Bouvier <benj@benj.me>
Fri, 01 Mar 2019 13:33:11 +0000
changeset 519828 adec0b33eea7592d4abc6d7417df7980d949b5b7
parent 519827 513ac146d20192afc26d01dacaec1986f3e23b88
child 519829 c9052ac46602442bf21e3351bf2946b2daa76e82
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs1530641
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1530641: Add test case; r=bhackett Differential Revision: https://phabricator.services.mozilla.com/D21506
js/src/jit-test/tests/wasm/regress/no-directives/debugger-no-script.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/regress/no-directives/debugger-no-script.js
@@ -0,0 +1,19 @@
+// |jit-test| skip-if: !wasmIsSupported() || !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()");