content
content copied to clipboard
More clearly explain catch binding scope
Description
Mention an Annex B feature, as well as highlighting that there should be zero duplicate names.
Motivation
Additional details
Related issues and pull requests
Preview URLs
- /en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features
- /en-US/docs/Web/JavaScript/Reference/Statements/try...catch
(comment last updated: 2023-05-24 03:35:27)
If it is not implemented anywhere, we should not document it. We document implementations, not specs.
Annex B is implemented by all browsers (this is stated by the intro of this section), so for web developers it'll always work, just deprecated.
Oops, didn't mean to dismiss, but this needs a re-review anyway...
Pinging @teoli2003 again to decide what to do here, since I have another pending PR to improve the var and other scope-related pages.
This pull request has merge conflicts that must be resolved before it can be merged.
@teoli2003 This has been around forever, so maybe we can decide what is needed?
I am (semi-)randomly bringing in another JS reviewer to hopefully get some more feedback...
Thanks @wbamberg!