archives

« Bugzilla Issues Index

#2608 — CatchParameter Early Error: VarDeclaredNames


Per 13.14.1, it is a syntax error if any bindings from CatchParameter also exist in the VarDeclaredNames of the catch block. This would appear to be a breaking change for the following case:

try {} catch (x) { var x }


yes, see discussion in April TC39 meeting notes https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-04/apr-8.md#var-hoisting-and-catch-parameters


fixed in rev24 editor's draft

Annex B variation added


fixed in rev24