mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Close #47872 zone-node only patches `Promise.prototype.then` instead of patch `Promise` itself. So the new NodeJS `SafePromise` will not complain the Promise.prototype.then called on incompatible receiver. We should also do this change on browser zone.js patch, but it will be a big breaking change, because Promise.prototype.then will not work with `fakeAsync` any longer. PR Close #49144
12 lines
288 B
TypeScript
12 lines
288 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import '../zone';
|
|
import './promise';
|
|
import '../common/to-string';
|
|
import './node';
|