mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 05:00:26 +01:00
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>
This commit is contained in:
5
tests/ports/webassembly/run_python_async_error.mjs.exp
Normal file
5
tests/ports/webassembly/run_python_async_error.mjs.exp
Normal file
@@ -0,0 +1,5 @@
|
||||
PythonError NameError
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in <module>
|
||||
NameError: name 'fail' isn't defined
|
||||
|
||||
Reference in New Issue
Block a user