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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user