archives

« Bugzilla Issues Index

#1468 — FunctionBody grammar is not correct


13.1 Function Definitions

FunctionBody :
StatementListopt

StatementList only consists of Statement. A FunctionBody should be able to contain Statement, Declaration or BreakableStatement


12.1 defines
StatementListItem :
Statement
Declaration

and clause 12 defines
Statement :
... (a bunch of stuff)
BreakableStatement
... (a bunch of stuff)