Reviewers: rossberg,
Message:
This is ready for at least a review of the approach taken. Will send a note
to
v8-team-harmony about the approach as well.
Description:
Begin modernization of --harmony-modules
The approach taken in this CL is to incrementally move toward the
currently-specced version of modules in ES6. The biggest change in this
patch is separating the parsing of modules from the parsing of scripts,
getting rid of the 'module' keyword and thus disallowing modules-in-scripts
as well as modules-in-modules.
The syntax supported by import/export declarations has not yet been
significantly
changed, with the major exception being that import declarations require a
string
as the 'from' part.
Most of the existing tests have been disabled, with a first new test added
in cctest/test-parsing.
Please review this at https://codereview.chromium.org/881623002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+161, -435 lines):
M src/ast-value-factory.h
M src/compiler.h
M src/parser.h
M src/parser.cc
M src/scopes.cc
M test/cctest/cctest.status
M test/cctest/test-decls.cc
M test/cctest/test-parsing.cc
M test/mjsunit/harmony/module-parsing.js
M test/mjsunit/mjsunit.status
--
--
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.