MCPcopy
hub / github.com/sveltejs/kit / installPolyfills

Function installPolyfills

packages/kit/src/exports/node/polyfills.js:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 * - `File`
18 */
19export function installPolyfills() {
20 for (const name in globals) {
21 if (name in globalThis) continue;
22
23 Object.defineProperty(globalThis, name, {
24 enumerable: true,
25 configurable: true,
26 writable: true,
27 value: globals[name]
28 });
29 }
30}

Callers 10

serverless.jsFile · 0.90
shims.jsFile · 0.90
analyseFunction · 0.90
prerenderFunction · 0.90
generate_fallbackFunction · 0.90
cookie.spec.jsFile · 0.90
sequence.spec.jsFile · 0.90
devFunction · 0.90
previewFunction · 0.90
shims.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected