DescriptionWiden --harmony-for-in flag to throw errors in PreParser
The first version of --harmony-for-in avoided throwing PreParser
errors in order to retain use counting. This patch threads
use_counts_ through to the PreParser to allow use counting in
the PreParser while also throwing errors for this case.
Also slightly refactored the Parser code to do a little less
code duplication.
BUG=v8:4942
LOG=y
Committed: https://crrev.com/739947880cd1e9a8cc1ad1d6c26ca5a1442541f3
Cr-Commit-Position: refs/heads/master@{#35780}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|