Reviewers: arv, rossberg,
Message:
This was easier than I expected, so it follows hot-on-the-heels of the
referenced cleanup patch. Review that one first.
Description:
Re-introduce ImportDeclaration to the parser
This also adds a new VariableMode, IMPORT, which will be
used to do appropriate binding for Import-declared Variables.
Only named imports are handled for now. "import *" and default
import syntaxes have had their TODOs adjusted to match the new
code structure.
Depends on https://codereview.chromium.org/952863006/
BUG=v8:1569
Please review this at https://codereview.chromium.org/948303004/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+96, -62 lines):
M src/ast.h
M src/ast-numbering.cc
M src/contexts.cc
M src/globals.h
M src/parser.h
M src/parser.cc
M src/prettyprinter.cc
M src/runtime/runtime-scopes.cc
M src/typing.cc
M src/variables.cc
M test/cctest/test-parsing.cc
A + test/message/import-as-redeclaration.js
A test/message/import-as-redeclaration.out
A + test/message/import-redeclaration.js
A test/message/import-redeclaration.out
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.