Skip to content

Commit

Permalink
feat(ses): permit Promise.prototype.try (#2609)
Browse files Browse the repository at this point in the history
Closes: #2607 

## Description

> "There is no do. There is only try."
> —Noda

See also https://github.com/tc39/proposal-promise-try

### Security Considerations

none

### Scaling Considerations

none

### Documentation Considerations

one less divergence to document.

### Testing Considerations

none

### Compatibility Considerations

better

### Upgrade Considerations

nothing breaking.
  • Loading branch information
erights authored Oct 24, 2024
1 parent 7c32c62 commit d37a434
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ses/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
User-visible changes in `ses`:

# Next release

- Permit [Promise.try](https://github.com/tc39/proposal-promise-try),
since it has reached Stage 4.

# v1.9.0 (2024-10-10)

- On platforms without
Expand Down
2 changes: 2 additions & 0 deletions packages/ses/src/permits.js
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,8 @@ export const permitted = {
// https://github.com/tc39/proposal-promise-with-resolvers
withResolvers: fn,
'@@species': getter,
// https://github.com/tc39/proposal-promise-try
try: fn,
},

'%PromisePrototype%': {
Expand Down

0 comments on commit d37a434

Please sign in to comment.