Skip to content

Add tests for async generator function expressions#821

Merged
rwaldron merged 1 commit into
tc39:masterfrom
caitp:AsyncGeneratorExpressions
Jan 19, 2017
Merged

Add tests for async generator function expressions#821
rwaldron merged 1 commit into
tc39:masterfrom
caitp:AsyncGeneratorExpressions

Conversation

@caitp

@caitp caitp commented Jan 11, 2017

Copy link
Copy Markdown
Contributor

type: SyntaxError
---*/

(async function*(x = 1) {"use strict"});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a way to assert that this actually throws an error?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is already expected to throw an early error, see line 10 for the negative flag expecting an early SyntaxError.

@caitp caitp force-pushed the AsyncGeneratorExpressions branch from 26c33e6 to c43a36a Compare January 13, 2017 02:14
@benjamingr

Copy link
Copy Markdown

Hey, are the tests @thefourtheye wrote there?

@caitp

caitp commented Jan 16, 2017

Copy link
Copy Markdown
Contributor Author

I haven't added the tests added by you other guys, because I think you should all submit separate pull requests to tc39/test262, rather than me submitting them... I've said this 3 times now on several different repositories.

@rwaldron

Copy link
Copy Markdown
Contributor

@caitp I completely agree.

type: SyntaxError
---*/

(async function*(a = super.prop { });

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.

Typo

- (async function*(a = super.prop { });
+ (async function*(a = super.prop) { });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done, thanks for finding that

@caitp caitp force-pushed the AsyncGeneratorExpressions branch from c43a36a to 995b9af Compare January 19, 2017 19:27
@rwaldron

Copy link
Copy Markdown
Contributor

Thanks @caitp

@rwaldron rwaldron merged commit 6391689 into tc39:master Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants