diff options
| author | Damien George <damien@micropython.org> | 2025-09-28 22:16:36 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-30 17:39:15 +1000 |
| commit | 094000d418e9f7393b3d34814c3e43e6386145a7 (patch) | |
| tree | 95f26373168aff12f9efa36333ec5e3f184f611a /tests/micropython/viper_ptr8_store.py | |
| parent | 68ca22bbc882cda735d10f921769beff8aa60d77 (diff) | |
webassembly/objjsproxy: Fix logic that determines if asyncio is active.
`cur_task` can never be `None` in the webassembly port, so test it for the
top-level task to see if an asyncio Task is active or not.
This fixes a bug where await'ing on a JavaScript awaitable that ends up
raising an error would not be caught on the Python side. The fix here
makes sure it is caught by Python, as tested by the new test.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/micropython/viper_ptr8_store.py')
0 files changed, 0 insertions, 0 deletions
