DescriptionImplement ES2015 labelled function declaration restrictions
ES#sec-islabelledfunction specifies that labelled function declarations
may not occur as the body of a control flow construct such as an if
statement. This patch implements those restrictions, which also
eliminates a previous case resulting in a DCHECK failure which is now
a SyntaxError.
BUG=chromium:595309
R=adamk
LOG=Y
Committed: https://crrev.com/7f108b655bce12f922b5b2cec6652cefe1d6a245
Cr-Commit-Position: refs/heads/master@{#35049}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix style #
Messages
Total messages: 13 (5 generated)
|