wasm-bindgen/src
Alex Crichton 2e82fdbe16 Don't worry about descriptive strings for malloc errors
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!
2018-11-09 12:19:48 -08:00
..
convert Ensure that JsValue isn't considered Send 2018-10-10 15:47:07 -07:00
cast.rs Remove casting to &mut T for JS casts 2018-08-24 20:45:11 -07:00
closure.rs Ensure that JsValue isn't considered Send 2018-10-10 15:47:07 -07:00
describe.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
lib.rs Don't worry about descriptive strings for malloc errors 2018-11-09 12:19:48 -08:00