Skip to content

JavaScript: Fix parsing of asynchronous generator methods.#1852

Merged
semmle-qlci merged 1 commit into
github:masterfrom
xiemaisi:js/async-generator-methods
Sep 2, 2019
Merged

JavaScript: Fix parsing of asynchronous generator methods.#1852
semmle-qlci merged 1 commit into
github:masterfrom
xiemaisi:js/async-generator-methods

Conversation

@xiemaisi

@xiemaisi xiemaisi commented Sep 2, 2019

Copy link
Copy Markdown

@xiemaisi xiemaisi added the JS label Sep 2, 2019
@xiemaisi xiemaisi requested a review from a team as a code owner September 2, 2019 08:45
ghost
ghost previously approved these changes Sep 2, 2019

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, modulo a skippable change-note.

class C {
async *asyncMeth() {}
async *[Symbol.asyncIterator]() {}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add a test with an async method in an object literal (if such a thing is valid)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done.

@xiemaisi xiemaisi force-pushed the js/async-generator-methods branch from 550598f to 42f5058 Compare September 2, 2019 08:54
@xiemaisi

xiemaisi commented Sep 2, 2019

Copy link
Copy Markdown
Author

Change note sounds like a good plan; added.

@xiemaisi xiemaisi force-pushed the js/async-generator-methods branch from 42f5058 to 91e46cd Compare September 2, 2019 08:56
@semmle-qlci semmle-qlci merged commit c8ffbf3 into github:master Sep 2, 2019
@xiemaisi xiemaisi deleted the js/async-generator-methods branch September 12, 2019 09:19
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