PetterS / quickjs

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

Segfault in awaited Python call #66

Open qwenger opened 2 years ago

qwenger commented 2 years ago
>>> import quickjs
>>> ctx = quickjs.Context()
>>> def test():
...     raise Exception
... 
>>> ctx.add_callable("test", test)
>>> ctx.eval("async function a() {await test()}")
>>> ctx.eval("a()")

Segmentation fault (core dumped)
qwenger commented 2 years ago

This happens when attempting to create a return Object after a Python exception was set in JS_Eval.