Skip to content

(zone.js) Promise.try is undefined #67057

@oBusk

Description

@oBusk

Which @angular/* package(s) are the source of the bug?

zone.js

Is this a regression?

No

Description

In 2025 the static method Promise.try recieved wide support in browsers.

ZoneAwarePromise does not implement it.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Uncaught TypeError: Promise.try is not a function

Please provide the environment you discovered this bug in (run ng version)

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI       : 21.1.4
Angular           : 21.1.4
Node.js           : 24.13.0
Package Manager   : pnpm 10.29.3
Operating System  : win32 x64

┌───────────────────────────────────┬───────────────────┬───────────────────┐
│ Package                           │ Installed Version │ Requested Version │
├───────────────────────────────────┼───────────────────┼───────────────────┤
│ @angular/animations               │ 21.1.4            │ ^21.1.4           │
│ @angular/build                    │ 21.1.4            │ ^21.1.4           │
│ @angular/cdk                      │ 21.1.4            │ ^21.1.4           │
│ @angular/cli                      │ 21.1.4            │ ~21.1.4           │
│ @angular/common                   │ 21.1.4            │ ^21.1.4           │
│ @angular/compiler                 │ 21.1.4            │ ^21.1.4           │
│ @angular/compiler-cli             │ 21.1.4            │ ^21.1.4           │
│ @angular/core                     │ 21.1.4            │ ^21.1.4           │
│ @angular/forms                    │ 21.1.4            │ ^21.1.4           │
│ @angular/language-service         │ 21.1.4            │ ^21.1.4           │
│ @angular/localize                 │ 21.1.4            │ ^21.1.4           │
│ @angular/material                 │ 21.1.4            │ ^21.1.4           │
│ @angular/material-moment-adapter  │ 21.1.4            │ ^21.1.4           │
│ @angular/platform-browser         │ 21.1.4            │ ^21.1.4           │
│ @angular/platform-browser-dynamic │ 21.1.4            │ ^21.1.4           │
│ @angular/router                   │ 21.1.4            │ ^21.1.4           │
│ @angular/youtube-player           │ 21.1.4            │ ^21.1.4           │
│ rxjs                              │ 7.8.2             │ ^7.8.2            │
│ typescript                        │ 5.9.3             │ ~5.9.3            │
│ zone.js                           │ 0.16.0            │ ~0.16.0           │
└───────────────────────────────────┴───────────────────┴───────────────────┘

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: zonesIssues related to zone.js

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions