mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-14 20:11:37 +03:00
72f346871c
Turns out that `JSON.stringify(undefined)` doesn't actually return a string, it returns `undefined`! If we're requested to serialize `undefined` into JSON instead just interpret it as `null` which should have the expected semantics of serving as a placeholder for `None`. Closes #1778 |
||
---|---|---|
.. | ||
crates | ||
headless | ||
no-std | ||
wasm | ||
non_wasm.rs | ||
std-crate-no-std-dep.rs | ||
unwrap_throw.rs |