mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 02:10:52 +02:00
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>
6 lines
133 B
Plaintext
6 lines
133 B
Plaintext
PythonError NameError
|
|
Traceback (most recent call last):
|
|
File "<stdin>", line 1, in <module>
|
|
NameError: name 'fail' isn't defined
|
|
|