archives

« Bugzilla Issues Index

#4427 — Annex B.3.3 needs to look at all blocks, not VarScopedDeclarations


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


Fixed in ES2016 Draft (efbfc88).