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
@@ -209,12 +212,13 @@ const result = try using resource = new Resource() // Syntax error!
209
212
This is because their "equivalent" would also result in a syntax error:
210
213
211
214
```js
212
-
letresult
215
+
let_result
213
216
try {
214
-
result=Result.ok(thrownewError("Something went wrong")) // Syntax error!
217
+
_result=Result.ok(thrownewError("Something went wrong")) // Syntax error!
215
218
} catch (error) {
216
-
result=Result.error(error)
219
+
_result=Result.error(error)
217
220
}
221
+
constresult= _result
218
222
```
219
223
220
224
A detailed discussion about this topic is available at [GitHub Issue #54](https://github.com/arthurfiorette/proposal-try-statements/issues/54) for those interested.
0 commit comments