webassembly/proxy_js: Revert back to converting Py None to JS null.

This reverts part of commit fa23e4b093, to
make it so that Python `None` converts to JavaScript `null` (and JavaScript
`null` already converts to Python `None`).  That's consistent with how the
`json` module converts these values back and forth.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-05-14 21:54:14 +10:00
parent c10a74b162
commit 0148bbb495
3 changed files with 5 additions and 5 deletions

View File

@@ -188,7 +188,7 @@ function proxy_convert_mp_to_js_obj_jsside(value) {
}
if (kind === PROXY_KIND_MP_NONE) {
// None
obj = undefined;
obj = null;
} else if (kind === PROXY_KIND_MP_BOOL) {
// bool
obj = Module.getValue(value + 4, "i32") ? true : false;