mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
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:
parent
b601c3fb2e
commit
d9e53ac2f6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user