Skip to content

Don't crash on property access with type#25170

Merged
2 commits merged into
masterfrom
getSpecialPropertyAccessKind
Jun 25, 2018
Merged

Don't crash on property access with type#25170
2 commits merged into
masterfrom
getSpecialPropertyAccessKind

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 23, 2018

Fixes #25154

#20198 added support for /** @type {number} */ this.x; syntactically, but we were crashing in the checker if that syntax was used.
This stops the crashing, but there is no error reporting yet (#25169).

@ghost ghost requested a review from sandersn June 23, 2018 00:51
@ghost ghost force-pushed the getSpecialPropertyAccessKind branch from ee60c19 to fb251bd Compare June 25, 2018 16:28
Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Looks good but need to rerevriw after force push.

@@ -0,0 +1,12 @@
error TS5055: Cannot write file '/a.js' because it would overwrite input file.
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.

noEmit: true will avoid this error

@@ -0,0 +1,9 @@
// @allowJs: true
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.

Can you please 1. Rename to jsdocPrototypePropertyAccessWithType 2. Move to conformance/jsdoc

Copy link
Copy Markdown
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Just the one comment on moving the test

@ghost ghost merged commit e8e80d2 into master Jun 25, 2018
@ghost ghost deleted the getSpecialPropertyAccessKind branch June 25, 2018 18:25
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
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.

1 participant