• gsathya's avatar
    [ESnext] Parse dynamic import expression · e791ded4
    gsathya authored
    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}
    e791ded4
parser.cc 194 KB