mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-26 19:45:54 +03:00
2e82fdbe16
This commit updates the `__wbindgen_malloc` shim to avoid throwing a descriptive error in release mode. This is primarily done for two reasons: * If the function is gc'd out in release mode the `"invalid malloc request"` string is part of data and can't be gc'd automatically. * In some esoteric JS environments `TextDecoder` isn't always available, and this relatively core function is very quick to bring in that requirement early on. For example some recent experimentation with WebAudio worklets shows that they currently don't have the `TextDecoder` type available! |
||
---|---|---|
.. | ||
convert | ||
cast.rs | ||
closure.rs | ||
describe.rs | ||
lib.rs |