angular/packages/zone.js/test
Andrew Scott fc557f0276 fix(zone.js): support passthrough of Promise.try API
When Zone patches Promise, it uses ZoneAwarePromise. The new Promise.try API was undefined on ZoneAwarePromise, making it unavailable when zone was present. This change gracefully passes through Promise.try to the native Promise implementation, if available, without patching it to execute in the right zone (our stance is not to add new patches but avoid destructively making new APIs unavailable).

Fixes #67057
2026-02-17 11:32:49 -08:00
..
assets refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
closure build: separate zone.js dependencies into their own directory (#63425) 2025-09-05 12:52:55 -07:00
common fix(zone.js): support passthrough of Promise.try API 2026-02-17 11:32:49 -08:00
extra build: update repository to use node 22.21.1 in bazel 2025-12-09 09:19:13 -08:00
jest build: update jest monorepo to v30 (#62234) 2025-06-24 10:49:30 +00:00
node build: migrate zone.js to use ts_project instead of ts_library (#62673) 2025-07-17 13:59:37 -04:00
npm_package refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
patch refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
performance ci: reformat files 2025-12-16 09:24:36 -08:00
promise ci: reformat files 2025-12-16 14:44:19 -08:00
rxjs refactor(common): update copyright to Google LLC 2026-02-09 07:51:36 -08:00
typings feat(core): add support for TypeScript 6 2026-02-17 08:40:38 -08:00
vitest fix(zone.js): waitForAsync should pass args to the test function (#61755) 2025-06-09 11:22:22 -07:00
webdriver build: enable angular formatting on all html files 2025-12-08 10:19:45 -08:00
zone-spec ci: reformat files 2025-12-16 14:44:19 -08:00
browser-env-setup.ts refactor(zone.js): updates fake polyfill to remove top-level side effect (#53443) 2024-03-15 18:11:34 -07:00
browser-zone-setup.ts refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
browser_disable_wrap_uncaught_promise_rejection_entry_point.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser_disable_wrap_uncaught_promise_rejection_setup.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser_entry_point.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser_es2015_entry_point.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser_shadydom_entry_point.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser_shadydom_setup.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
browser_symbol_setup.ts fix(zone.js): disable wrapping unhandled promise error by default (#52492) 2023-11-03 09:33:20 -07:00
BUILD.bazel refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
common_tests.ts build: move from using rollup to esbuild for bundling zone.js (#62775) 2025-07-25 16:53:00 +02:00
fake_entry.js
jasmine-patch.spec.ts build: move from using rollup to esbuild for bundling zone.js (#62775) 2025-07-25 16:53:00 +02:00
karma_test.bzl build: separate zone.js dependencies into their own directory (#63425) 2025-09-05 12:52:55 -07:00
main.ts build: update to bazel 7.6.0 (#63096) 2025-08-14 13:01:30 +02:00
mocha-patch.spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node-env-setup.ts refactor(zone.js): update Node test entry point to call patch functions (#53443) 2024-03-15 18:11:34 -07:00
node_bluebird_entry_point.init.ts refactor(zone.js): remove unused jasmine globalerror monkey patching. (#63077) 2025-08-11 16:41:09 -07:00
node_entry_point.init.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_error_disable_policy.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_error_disable_policy_entry_point.init.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_error_entry_point.init.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_error_lazy_policy.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_error_lazy_policy_entry_point.init.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
node_tests.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
saucelabs.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
test-env-setup-jasmine.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
test-env-setup-mocha.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
test-util.ts refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00
test_fake_polyfill.ts fix(zone.js): support passthrough of Promise.try API 2026-02-17 11:32:49 -08:00
ws-server.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
ws-webworker-context.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
wtf_mock.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
zone_worker_entry_point.ts refactor(zone.js): remove legacy browser support (#63511) 2025-10-16 14:58:45 +00:00