Skip to content

fix(health): catch report rejections from other realms - #11

Open
ephraimduncan wants to merge 1 commit into
openstatusHQ:mainfrom
ephraimduncan:fix/handle-foreign-report-promises
Open

fix(health): catch report rejections from other realms#11
ephraimduncan wants to merge 1 commit into
openstatusHQ:mainfrom
ephraimduncan:fix/handle-foreign-report-promises

Conversation

@ephraimduncan

Copy link
Copy Markdown

Rejected promises from an onReport callback no longer cause an unhandled rejection when the promise comes from another JavaScript realm. The previous instanceof Promise check missed these promises, including promises from node:vm. Health reports do not wait for the callback, and cache behavior is unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant