You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Expressions are evaluated in a self-contained `try/catch` block](#expressions-are-evaluated-in-a-self-contained-trycatch-block)
@@ -169,11 +169,15 @@ Breaking compatibility is unacceptable for platforms like Node.js or libraries.
169
169
170
170
## What This Proposal Does Not Aim to Solve
171
171
172
-
### Strict Type Enforcement for Errors
172
+
### Type-Safe Errors
173
173
174
-
The `throw` statement in JavaScript can throw any type of value. This proposal does not impose nor proposes any kind safety on error handling.
174
+
The `throw` statement in JavaScript can throw any type of value. This proposal does not impose nor proposes any kind safety around error handling.
175
175
176
-
For more information, see [microsoft/typescript#13219](https://github.com/Microsoft/TypeScript/issues/13219). _(This also means no generic error type for the proposed [Result](#result-class) class)_
176
+
- No generic error type for the proposed [Result](#result-class) class will be added.
177
+
- No catch branching based on error type will be added. See [GitHub Issue #43](https://github.com/arthurfiorette/proposal-try-operator/issues/43) for more information.
178
+
- No ways to annotate a callable to specify the error type it throws will be added.
179
+
180
+
For more information, also see [microsoft/typescript#13219](https://github.com/Microsoft/TypeScript/issues/13219). _()_
0 commit comments