PetterS / quickjs

Thin Python wrapper of https://bellard.org/quickjs/
https://github.com/bellard/QuickJS
MIT License
177 stars 19 forks source link

Implement a host promise rejection tracker with Python callback #80

Open qwenger opened 2 years ago

qwenger commented 2 years ago

As discussed in my roadmap presented in #67.

This feature goes hand-in-hand with the job execution from #65.

QuickJS does not seem to support throwing an error from the promise rejection tracker, so if a Python exception happens there it is written as unraisable (PyErr_WriteUnraisable) and cleared.