DescriptionSplit function block scoping into a separate flag
In an initial attempt to implement sloppy mode lexical bindings,
functions were made lexically scoped in sloppy mode. However, the
ES2015 spec says that they need an additional hoisted var binding,
and further, it's not clear when we'll implement that behavior
or whether it's web-compatible.
This patch splits off function block scoping into a new, separate
flag called --harmony_sloppy_function. This change will enable the
possibility of testing and shipping this feature separately from
other block scoping-related features which don't have the same risks.
BUG=v8:4285
R=adamk
LOG=N
Committed: https://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334
Cr-Commit-Position: refs/heads/master@{#30122}
Patch Set 1 #Patch Set 2 : Switch to new flag and fix errors #Patch Set 3 : Add flags to tests #Patch Set 4 : Propagate flag #
Total comments: 2
Patch Set 5 : name change #Patch Set 6 : fix a test flag #Patch Set 7 : rebase #
Messages
Total messages: 46 (19 generated)
|