Promise.try()
The Promise.try()
static method returns a promise that takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result in a Promise
.
Status
Baseline Newly Available (since 2025-01-07)
This feature is expected to reach Baseline Widely Available status on: 2027-07-07
MDN documentation
Specifications
- ECMAScript® 2026 Language Specification (#sec-promise.try), from TC39 (Ecma International).
Browser support
- Chrome 128 Released on 2024-08-20
- Chrome Android 128 Released on 2024-08-20
- Edge 128 Released on 2024-08-22
- Firefox 134 Released on 2025-01-07
- Firefox for Android 134 Released on 2025-01-07
- Safari 18.2 Released on 2024-12-11
- Safari on iOS 18.2 Released on 2024-12-11
Developer signals
- State of JS 2024: reading_list/reading_list question
- State of JS 2024: features/async_features question
Usage (according to Chrome Platform Status)
~3.173% of page loads. More data at chromestatus.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist