Open laishere opened 3 months ago
The uncaughtable error can be thrown by an interrupt handler.
Noticed that the fail logic of js_async_function_resume function doesn't check if an exception is caughtable before sending it to the reject function of the Promise.
fail
js_async_function_resume
reject
I wonder if it is an expected behavior.
https://github.com/bellard/quickjs/blob/6e2e68fd0896957f92eb6c242a2e048c1ef3cae0/quickjs.c#L19236-L19239
The uncaughtable error can be thrown by an interrupt handler.
Noticed that the
fail
logic ofjs_async_function_resume
function doesn't check if an exception is caughtable before sending it to thereject
function of the Promise.I wonder if it is an expected behavior.
https://github.com/bellard/quickjs/blob/6e2e68fd0896957f92eb6c242a2e048c1ef3cae0/quickjs.c#L19236-L19239