mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 05:51:23 +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:
@ -1072,7 +1072,7 @@ pub mod __rt {
|
|||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn __wbindgen_exn_store(idx: u32) {
|
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[0] = 1;
|
||||||
GLOBAL_EXNDATA[1] = idx;
|
GLOBAL_EXNDATA[1] = idx;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user