mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Fix an inverted condition for catch_and_throw
This commit is contained in:
parent
edd1469d21
commit
b4c395bd6e
@ -1958,7 +1958,7 @@ impl<'a> Context<'a> {
|
||||
catch: bool,
|
||||
) -> Result<(), Error> {
|
||||
let signature = self.bindings.imports[&id].clone();
|
||||
let catch_and_rethrow = !self.config.debug;
|
||||
let catch_and_rethrow = self.config.debug;
|
||||
let js = Rust2Js::new(self)
|
||||
.catch_and_rethrow(catch_and_rethrow)
|
||||
.catch(catch)
|
||||
|
Loading…
x
Reference in New Issue
Block a user