Skip to content

Commit 749f1f3

Browse files
committed
chore: move queueMicrotask polyfill to angular polyfills
1 parent 2e7ce75 commit 749f1f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/angular/polyfills/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ if (typeof AbortController === 'undefined') {
4343
if (typeof AbortSignal === 'undefined') {
4444
global.AbortSignal = AbortSignal;
4545
}
46+
47+
if (typeof queueMicrotask === 'undefined') {
48+
global.queueMicrotask = (cb) => Promise.resolve().then(cb);
49+
}

packages/zone-js/dist/pre-zone-polyfills.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,3 @@ export const disabledPatches = [
1010
for (const patch of disabledPatches) {
1111
global[`__Zone_disable_${patch}`] = true;
1212
}
13-
14-
if (typeof queueMicrotask === 'undefined') {
15-
global.queueMicrotask = (cb) => Promise.resolve().then(cb);
16-
}

0 commit comments

Comments
 (0)