Switch to debug_assert_eq! in intrinic

Reduce the code size of wasm files by avoiding an `assert_eq!` and panic
code in production builds.
This commit is contained in:
Alex Crichton 2019-06-25 04:55:16 -07:00
parent b601c3fb2e
commit d9e53ac2f6

View File

@ -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;
}