2023-05-25 15:44:17 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google LLC All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
2024-09-20 15:37:46 +00:00
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
2023-05-25 15:44:17 +00:00
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @fileoverview
|
|
|
|
|
* @suppress {missingRequire}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export function patchQueueMicrotask(global: any, api: _ZonePrivate) {
|
|
|
|
|
api.patchMethod(global, 'queueMicrotask', (delegate) => {
|
2024-04-19 16:53:49 +00:00
|
|
|
return function (self: any, args: any[]) {
|
2023-05-25 15:44:17 +00:00
|
|
|
Zone.current.scheduleMicroTask('queueMicrotask', args[0]);
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|