wiki/content/20201116154824-javascript_optional_catch_binding.md

27 lines
388 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-16
2024-05-06 20:40:05 +00:00
id: ede05265-f991-4a4e-b782-e2b63917c365
title: JavaScript Optional Catch Binding
---
# Description
Sometimes you don't care about the error and you're allowed to ignore
it.
# Proposal
Optional catch binding[^1]
# Syntax
try {
// ···
} catch {
// ···
}
# Footnotes
[^1]: <https://github.com/tc39/proposal-optional-catch-binding>