quickjs
quickjs copied to clipboard
Segfault in awaited Python call
>>> 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)
This happens when attempting to create a return Object after a Python exception was set in JS_Eval.