-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Allow duplicate FunctionDeclarations in a block
A previously overlooked aspect of intersection semantics for #sec-block-level-function-declarations-web-legacy-compatibility-semantics is the ability to have multiple function declarations with the same name in the same block. This patch relaxes that constraint in sloppy mode. Because it relaxes a static semantics rule, and replaces rather than simply adds behavior, it is in the main spec text rather than Annex B. The patch also puts the non-normative text in Annex B in an emu-note. Fixes #320.
Showing
1 changed file
with
65 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters