angular-cn/packages/zone.js/test/common
JiaLiPassion 31796e8e2f fix(zone.js): remove unused Promise overwritten setter logic (#36851)
In the early Zone.js versions (< 0.10.3), `ZoneAwarePromise` did not support `Symbol.species`,
so when user used a 3rd party `Promise` such as `es6-promise`, and try to load the promise library after import of `zone.js`, the loading promise library will overwrite the patched `Promise` from `zone.js` and will break `Promise` semantics with respect to `zone.js`.

Starting with `zone.js` 0.10.3, `Symbol.species` is supported therefore this will not longer be an issue. (https://github.com//pull/34533)

Before 0.10.3, the logic in zone.js tried to handle the case in the wrong way. It did so by overriding the descriptor of `global.Promise`, to allow the 3rd party libraries to override native `Promise` instead of `ZoneAwarePromise`. This is not the correct solution, and since the `Promise.species` is now supported, the 3rd party solution of overriding `global.Promise` is no longer needed.

PR removes the wrong work around logic. (This will improve the bundle size.)

PR Close #36851
2020-06-11 18:56:19 -07:00
..
Error.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
Promise.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
fetch.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
microtasks.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
promise-disable-wrap-uncaught-promise-rejection.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
setInterval.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
setTimeout.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
task.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
toString.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
util.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
zone.spec.ts fix(zone.js): remove unused Promise overwritten setter logic (#36851) 2020-06-11 18:56:19 -07:00