« Bugzilla Issues Index
#2608 — CatchParameter Early Error: VarDeclaredNames
- bug_id:
2608
- creation_ts:
2014-04-08 12:39:00 -0700
- short_desc:
CatchParameter Early Error: VarDeclaredNames
- delta_ts:
2014-05-06 17:03:44 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 23: April 5, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Kevin Smith
- assigned_to:
Allen Wirfs-Brock
- commentid:
7628
- comment_count:
0
- who:
Kevin Smith
- bug_when:
2014-04-08 12:39:31 -0700
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 }
- commentid:
7760
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-16 16:17:27 -0700
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
- commentid:
7791
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-17 12:09:29 -0700
fixed in rev24 editor's draft
Annex B variation added
- commentid:
8200
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2014-05-06 17:03:44 -0700
fixed in rev24