Files
micropython/tests/ports/webassembly/fun_proxy.mjs.exp
Damien George 5114f2c1ea webassembly/proxy_js: Allow a Python proxy of a function to be undone.
This optimises the case where a Python function is, for example, stored to
a JavaScript attribute and then later retrieved from Python.  The Python
function no longer needs to be a proxy with double proxying needed for the
call from Python -> JavaScript -> Python.

Signed-off-by: Damien George <damien@micropython.org>
2024-03-30 13:13:51 +11:00

20 lines
258 B
Plaintext

== JavaScript side ==
[Function (anonymous)]
3
[Function (anonymous)]
-1
== Python side ==
<class 'JsProxy'>
3
<class 'JsProxy'>
-1
<class 'function'>
6
<class 'function'>
3.0
== JavaScript side ==
[Function: obj] { _ref: 4 }
6
[Function: obj] { _ref: 3 }
3