Description[ESnext] Parse dynamic import expression
Rewrites import expression into a runtime call. Uses peekahead to
determine if parsing an import declaration or import expression.
The runtime call doesn't actually do the import yet, will be added in
follow on patch.
Adds a new --harmony-dynamic-import flag.
Adds a ignore_error_msg parameter to the test runner to ignore the
discrepancy in the error messages while parsing import expression with
parser and pre parser. This discrepancy will actually never happen in
real code.
BUG=v8:5785
Review-Url: https://codereview.chromium.org/2661933003
Cr-Commit-Position: refs/heads/master@{#42820}
Committed: https://chromium.googlesource.com/v8/v8/+/e791ded4cdbe8c4d3f4e4a65e62f61e2b5a1c196
Patch Set 1 #Patch Set 2 : Add flag + tests #Patch Set 3 : add dcheck #Patch Set 4 : fix #Patch Set 5 : use diff runtime call #
Total comments: 4
Patch Set 6 : review fixes #
Total comments: 8
Patch Set 7 : fix #
Messages
Total messages: 32 (22 generated)
|