Skip to content

Conversation

@xiemaisi
Copy link

yield import(...) previously caused a syntax error, now it is parsed correctly.

parseYield is the only place where the value of startsExpr matters, so this change should not affect anything else and hence seems safe as a hotfix.

I have verified that this fix does not change the TRAP files produced for our default benchmark suite except for one test file in test262 (duplicated in gecko-dev) and another one in babel that explicitly exercise this syntax. These files now extract without syntax errors.

Fixes #1105.

`yield import(...)` previously caused a syntax error, now it is parsed
correctly.

`parseYield` is the only place where the value of `startsExpr` matters,
so this change should not affect anything else.
@xiemaisi xiemaisi added the JS label Mar 14, 2019
@xiemaisi xiemaisi added this to the 1.20 milestone Mar 14, 2019
@xiemaisi xiemaisi requested a review from a team as a code owner March 14, 2019 14:17
Copy link
Contributor

@asger-semmle asger-semmle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@semmle-qlci semmle-qlci merged commit e648477 into github:rc/1.20 Mar 14, 2019
@xiemaisi xiemaisi deleted the js/yield-import branch April 2, 2019 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants