react-code-dataset
/
next.js
/packages
/next
/src
/client
/react-client-callbacks
/report-global-error.ts
| export const reportGlobalError = | |
| typeof reportError === 'function' | |
| ? // In modern browsers, reportError will dispatch an error event, | |
| // emulating an uncaught JavaScript error. | |
| reportError | |
| : (error: unknown) => { | |
| // TODO: Dispatch error event | |
| globalThis.console.error(error) | |
| } | |