You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see the error if you set a JS_SetHostPromiseRejectionTracker.
In qjs there is an option for it:
% qjs --unhandled-rejection
qjs > new Promise((resolve, reject) => {resolve('ok')}).then(result => {call_inexistent_func();})
Possibly unhandled promise rejection: ReferenceError: 'call_inexistent_func' is not defined
at <anonymous> (<evalScript>)
Activity
nickva commentedon Mar 26, 2025
You can see the error if you set a
JS_SetHostPromiseRejectionTracker.In
qjsthere is an option for it:hongzhidao commentedon Mar 27, 2025
Hi @nickva,
It works well, thanks for the point.
hongzhidao commentedon Mar 27, 2025
@nickva,
BTW, what do you think of the change?
quickjs-ng/quickjs@11b7592