mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 20:11:55 +00:00
Allow disabling --debug
in wasm-bindgen-test-runner
Afterwards remove the `non_debug` test as we're running the entire test suite in non-debug mode!
This commit is contained in:
@@ -31,6 +31,10 @@ exports.js_strings = () => {
|
||||
};
|
||||
|
||||
exports.js_exceptions = () => {
|
||||
// this test only works when `--debug` is passed to `wasm-bindgen` (or the
|
||||
// equivalent thereof)
|
||||
if (require('process').env.WASM_BINDGEN_NO_DEBUG)
|
||||
return;
|
||||
assert.throws(() => new wasm.ClassesExceptions1(), /cannot invoke `new` directly/);
|
||||
let a = wasm.ClassesExceptions1.new();
|
||||
a.free();
|
||||
|
Reference in New Issue
Block a user