1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-31 17:31:06 +00:00

Fix an inverted condition for catch_and_throw

This commit is contained in:
Alex Crichton 2019-05-31 07:28:45 -07:00
parent edd1469d21
commit b4c395bd6e

@ -1958,7 +1958,7 @@ impl<'a> Context<'a> {
catch: bool, catch: bool,
) -> Result<(), Error> { ) -> Result<(), Error> {
let signature = self.bindings.imports[&id].clone(); 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) let js = Rust2Js::new(self)
.catch_and_rethrow(catch_and_rethrow) .catch_and_rethrow(catch_and_rethrow)
.catch(catch) .catch(catch)