Bug 1530641: Add test case; r=bhackett
☠☠ backed out by fdd37ef2117b ☠ ☠
authorBenjamin Bouvier <benj@benj.me>
Thu, 28 Feb 2019 11:53:38 +0000
changeset 461722 c21e3a9d44571587b757ab279c6876bba9e5be83
parent 461721 34b250d8bddf9a24f0c349da5391fad0598e9f6c
child 461723 3fa94e4ff5dbf92d13b28d4e3e0178f6ec0c8a6b
push id35627
push useropoprus@mozilla.com
push dateThu, 28 Feb 2019 21:44:07 +0000
treeherdermozilla-central@db533ea3d561 [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/debugger-no-script.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/wasm/regress/debugger-no-script.js
@@ -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()");