webassembly/proxy_js: Create a special "undefined" type for Python.

This adds a new undefined singleton to Python, that corresponds directly to
JavaScript `undefined`.  It's accessible via `js.undefined`.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-05-14 21:56:36 +10:00
parent 0148bbb495
commit aa2e3880c1
8 changed files with 35 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ class PythonError extends Error {
}
function proxy_js_init() {
globalThis.proxy_js_ref = [globalThis];
globalThis.proxy_js_ref = [globalThis, undefined];
}
function proxy_call_python(target, argumentsList) {