We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
undefined
1 parent e0959b9 commit 94d6a91Copy full SHA for 94d6a91
wasm/lib/src/lib.rs
@@ -83,6 +83,9 @@ fn js_to_py(vm: &mut VirtualMachine, js_val: JsValue) -> PyObjectRef {
83
}
84
.clone();
85
vm.new_exception(exc_type, err.message().into())
86
+ } else if js_val.is_undefined() {
87
+ // Because `JSON.stringify(undefined)` returns undefined
88
+ vm.get_none()
89
} else {
90
let loads = rustpython_vm::import::import(
91
vm,
0 commit comments