mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Before this commit, zone.js wraps the uncaught promise rejection error to a new Error object includes more information such as Zone stack traces. This feature is provided from the very beginning of Zone.js, but this feature becomes very annoying and make the user difficult to debug. So this commit disable this wrapping behavior by default, and user can enable this feature back by setting `DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION` to `false`. PR Close #52492
4 lines
245 B
TypeScript
4 lines
245 B
TypeScript
(window as any).global = window;
|
|
// Change default symbol prefix for testing to ensure no hard-coded references.
|
|
(window as any)['__Zone_symbol_prefix'] = '_test__';
|
|
(window as any)['_test__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION'] = false;
|