Description[es6] Remove Scanner and Parser flags for harmony_modules
These flags weren't doing any real work, since the decision of whether some
source code is a script or module is made outside the parser (currently,
by the V8 API).
The only behavior change in this patch is to always parse 'import' and
'export' as their Token values, which changes the error message from
"Unexpected reserved word" to "Unexpected token import" (which doesn't
seem particularly harmful).
Committed: https://crrev.com/5c34bacb727e031da0dad96d0a3ee55df40a09b9
Cr-Commit-Position: refs/heads/master@{#30034}
Patch Set 1 #Patch Set 2 : Remove call to SetHarmonyModules from test-parsing #Patch Set 3 : Add flag-setting to cctests #
Messages
Total messages: 13 (6 generated)
|