Skip to content

Report a semantic error for an arrow function with a "this" parameter.#25863

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
mattmccutchen:issue-9744
Jul 24, 2018
Merged

Report a semantic error for an arrow function with a "this" parameter.#25863
mhegazy merged 1 commit into
microsoft:masterfrom
mattmccutchen:issue-9744

Conversation

@mattmccutchen
Copy link
Copy Markdown
Contributor

Fixes #9744.



//// [thisTypeInFunctionsNegative.js]
// @target es6
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.

This seems to have no effect. Otherwise the __extends helper wouldn't be emitted.

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.

Good catch. I assumed this was working because I didn't get an error about Promise not being defined, but there may be a different reason that error doesn't occur in the context of the test suite. It looks like I messed up the syntax. Fixed.

Copy link
Copy Markdown
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@mhegazy mhegazy merged commit 870c55c into microsoft:master Jul 24, 2018
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants