-
-
Notifications
You must be signed in to change notification settings - Fork 210
BrowserErrorCaptureEnum
David Ortner edited this page Oct 16, 2024
·
2 revisions
enum BrowserErrorCaptureEnum
Name | Description |
---|---|
tryAndCatch | Happy DOM uses try and catch when evaluating code, but will not be able to catch all errors and Promise rejections. This will decrease performance as using try and catch makes the execution slower. |
processLevel | Happy DOM will add an event listener to the Node.js process to catch all errors and Promise rejections. This will not work in Jest and Vitest as it conflicts with their error listeners. |
disabled | Error capturing is disabled. Errors and Promise rejections will be thrown. |