mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-27 03:55:20 +03: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]
|
||||
|
Loading…
Reference in New Issue
Block a user