-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ses,pass-style,marshal): permit Promise.any, AggregateError, cau…
…se (merge #2042)
- Loading branch information
Showing
36 changed files
with
1,001 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
User-visible changes in `@endo/common`: | ||
|
||
# Next release | ||
|
||
- `throwLabeled` parameterized error construction | ||
- Like the assertion functions/methods that were parameterized by an error | ||
constructor (`makeError`, `assert`, `assert.fail`, `assert.equal`), | ||
`throwLabeled` now also accepts named options `cause` and `errors` in its | ||
immediately succeeding `options` argument. | ||
- Like those assertion functions, the error constructor argument to | ||
`throwLabeled` can now be an `AggregateError`. | ||
If `throwLabeled` makes an error instance, it encapsulates the | ||
non-uniformity of the `AggregateError` construction arguments, allowing | ||
all the error constructors to be used polymorphically | ||
(generic / interchangeable). | ||
- The error constructor argument is now typed `GenericErrorConstructor`, | ||
effectively the common supertype of `ErrorConstructor` and | ||
`AggregateErrorConstructor`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
User-visible changes in `@endo/errors`: | ||
|
||
# Next release | ||
|
||
- `AggegateError` support | ||
- Assertion functions/methods that were parameterized by an error constructor | ||
(`makeError`, `assert`, `assert.fail`, `assert.equal`) now also accept named | ||
options `cause` and `errors` in their immediately succeeding | ||
`options` argument. | ||
- For all those, the error constructor can now be an `AggregateError`. | ||
If they do make an error instance, they encapsulate the | ||
non-uniformity of the `AggregateError` construction arguments, allowing | ||
all the error constructors to be used polymorphically | ||
(generic / interchangeable). | ||
- Adds a `GenericErrorConstructor` type to be effectively the common supertype | ||
of `ErrorConstructor` and `AggregateErrorConstructor`, for typing these | ||
error constructor parameters that handle the error constructor | ||
polymorphically. | ||
- The SES `console` now includes `error.cause` and `error.errors` in | ||
its diagnostic output for errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.