DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
504 stars 63 forks source link

Add ability to check for rejection handlers in reject tracker callback. #147

Open DelSkayn opened 1 year ago

DelSkayn commented 1 year ago

The closed PR #119 was made to give rquickjs the ability to detect unhandled promise rejections. This PR was closed however because an alternative method of providing support for this feature was proposed:

Adding the ability to check if quickjs promise has attached rejection handlers. This would be a good way to support the use case as if a promise has no handlers attached the promise can be considered unhandled.