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

View File

@ -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)