Files
micropython/tests/ports/webassembly/run_python_async_error.mjs.exp
Damien George 9da63a343e webassembly/proxy_c: Reject promises with a PythonError instance.
The `reason` in a rejected promise should be an instance of `Error`.  That
leads to better error messages on the JavaScript side.

Signed-off-by: Damien George <damien@micropython.org>
2024-05-06 14:04:13 +10:00

6 lines
133 B
Plaintext

PythonError NameError
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'fail' isn't defined