We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c8a24b commit 9584efaCopy full SHA for 9584efa
packages/service-provider-core/src/textencoder-polyfill.ts
@@ -10,11 +10,11 @@ if (
10
// @ts-ignore
11
typeof TextEncoder !== 'function'
12
) {
13
- // eslint-disable-next-line @typescript-eslint/no-implied-eval
14
const global =
15
(typeof globalThis === 'object' &&
16
globalThis?.Object === Object &&
17
globalThis) ||
+ // eslint-disable-next-line @typescript-eslint/no-implied-eval
18
Function('return this')();
19
Object.assign(global, textEncodingPolyfill());
20
}
0 commit comments