Skip to content

Commit

Permalink
Switch to debug_assert_eq! in intrinic
Browse files Browse the repository at this point in the history
Reduce the code size of wasm files by avoiding an `assert_eq!` and panic
code in production builds.
  • Loading branch information
alexcrichton committed Jun 25, 2019
1 parent b601c3f commit d9e53ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ pub mod __rt {

#[no_mangle]
pub unsafe extern "C" fn __wbindgen_exn_store(idx: u32) {
assert_eq!(GLOBAL_EXNDATA[0], 0);
debug_assert_eq!(GLOBAL_EXNDATA[0], 0);
GLOBAL_EXNDATA[0] = 1;
GLOBAL_EXNDATA[1] = idx;
}
Expand Down

0 comments on commit d9e53ac

Please sign in to comment.