DescriptionExtend Annex B 3.3 sloppy-mode block-scoped hoisting to scripts, eval
The ES2015 spec is missing an extension of sloppy-mode block-scoped function
behavior to the global scope in scripts, as well as to eval. This patch
brings that hoisting to those two areas. The behavior is not perfectly
spec-compliant since properties created on the global scope should be
set as enumerable even if they are non-enumerable previously, but the
attributes will not be modified if the property already exists under
this patch.
BUG=v8:4441
LOG=Y
R=adamk
TEST=reddit comment functionality seems to be fixed
Committed: https://crrev.com/76da493315bcd0fdf6b2bbecc462d8546e6a4cc0
Cr-Commit-Position: refs/heads/master@{#31037}
Patch Set 1 #Patch Set 2 : TODO about property attributes #Patch Set 3 : tests #Patch Set 4 : rebase #
Total comments: 1
Patch Set 5 : Tests, many of which fail #
Total comments: 8
Patch Set 6 : Improve tests #
Total comments: 2
Patch Set 7 : An additional test #Messages
Total messages: 23 (8 generated)
|