DescriptionFix up ParseProgram and ParseModule to do something sane with module scopes
The FunctionLiteral returned from the parser for modules now has a MODULE_SCOPE,
instead of associating the module scope with a Block inside it. This makes
it easy to get at the ModuleDescriptor from the caller of Parse(), so I've added
a basic test that pokes at the scope and the descriptor. Expect more tests
in this vein.
BUG=v8:1569
LOG=n
Committed: https://crrev.com/1a8dc98cbf9d661785444fa70ec7fbc2fd7e0d6c
Cr-Commit-Position: refs/heads/master@{#26836}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Remove setting of classes flag #Patch Set 3 : Stop using CHECK_EQ for AstRawStrings, clang does not like it #
Total comments: 2
Messages
Total messages: 11 (2 generated)
|