feat(core): add global error handler (#8509)

This commit is contained in:
liuyi
2024-10-18 14:34:13 +08:00
committed by GitHub
parent 4b77f6ed34
commit 9b31183bd1
17 changed files with 120 additions and 55 deletions

View File

@@ -3,13 +3,7 @@ import { polyfillPromise } from './promise-with-resolvers';
import { polyfillEventLoop } from './request-idle-callback';
import { polyfillResizeObserver } from './resize-observer';
export function polyfillElectron() {
polyfillResizeObserver();
}
export async function polyfillBrowser() {
polyfillResizeObserver();
polyfillEventLoop();
await polyfillPromise();
await polyfillDispose();
}
polyfillResizeObserver();
polyfillEventLoop();
await polyfillPromise();
await polyfillDispose();

View File

@@ -0,0 +1,3 @@
import { polyfillResizeObserver } from './resize-observer';
polyfillResizeObserver();