« Bugzilla Issues Index
#4427 — Annex B.3.3 needs to look at all blocks, not VarScopedDeclarations
- bug_id:
4427
- creation_ts:
2015-07-17 19:13:00 -0700
- short_desc:
Annex B.3.3 needs to look at all blocks, not VarScopedDeclarations
- delta_ts:
2015-11-02 14:57:22 -0800
- product:
ECMA-262 Edition 6
- component:
technical issues
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
CONFIRMED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Allen Wirfs-Brock
- assigned_to:
Allen Wirfs-Brock
- cc:
["brterlso", "bugs.ecmascript"]
- commentid:
14554
- comment_count:
0
- who:
Allen Wirfs-Brock
- bug_when:
2015-07-17 19:13:17 -0700
In Annex B.3.3, Step 1.a of the replacement steps for step 29, says:
"For each FunctionDeclaration /f/ in /varDeclarations/ that is directly contained in the /StatementList/ of a /Block/, /CaseClause/, or /DefaultClause/,"
in should instead sya:
"For each FunctionDeclaration /f/ that is directly contained in the /StatementList/ of a /Block/, /CaseClause/, or /DefaultClause/ Contained within /code/,"
the problem is that /varDeclarations/ only contains the top level function declrations from code.
Also see https://esdiscuss.org/topic/block-level-function-declarations-web-legacy-compatibility-bug
- commentid:
14880
- comment_count:
1
- who:
Brian Terlson
- bug_when:
2015-11-02 14:57:22 -0800
Fixed in ES2016 Draft (efbfc88).