MCPcopy Create free account
hub / github.com/toeverything/AFFiNE / ensureBasicEnvironment

Function ensureBasicEnvironment

tools/cli/src/webpack/error-handler.js:95–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 function ensureBasicEnvironment() {
96 var globals = [
97 'Promise',
98 'Map',
99 'fetch',
100 'customElements',
101 'MutationObserver',
102 ];
103
104 // eslint-disable-next-line @typescript-eslint/prefer-for-of
105 for (var i = 0; i < globals.length; i++) {
106 if (!(globals[i] in globalThis)) {
107 showGlobalErrorPage();
108 return;
109 }
110 }
111 }
112
113 ensureBasicEnvironment();
114 var goodtogo = registerGlobalErrorHandler();

Callers 1

error-handler.jsFile · 0.85

Calls 1

showGlobalErrorPageFunction · 0.85

Tested by

no test coverage detected