mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-09 13:46:05 +00:00
Merge pull request #1026 from alexcrichton/less-throw
Don't worry about descriptive strings for malloc errors
This commit is contained in:
commit
02cd0c5837
@ -840,7 +840,11 @@ pub mod __rt {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super::throw_str("invalid malloc request");
|
if cfg!(debug_assertions) {
|
||||||
|
super::throw_str("invalid malloc request")
|
||||||
|
} else {
|
||||||
|
std::process::abort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user