quickjs icon indicating copy to clipboard operation
quickjs copied to clipboard

Segfault in awaited Python call

Open qwenger opened this issue 4 years ago • 1 comments

>>> 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 avatar Oct 26 '21 10:10 qwenger

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

qwenger avatar Oct 26 '21 20:10 qwenger