Skip to content

Fix TypeError when JSDoc.tags is undefined#14373

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
DLehenbauer:fixSpreadUsage
Mar 1, 2017
Merged

Fix TypeError when JSDoc.tags is undefined#14373
mhegazy merged 1 commit into
microsoft:masterfrom
DLehenbauer:fixSpreadUsage

Conversation

@DLehenbauer
Copy link
Copy Markdown
Contributor

This fixes 'TypeError: Object is not iterable' errors in fourslash tests when the compiler is built with '--target=es2015'.

The errors occur because the preexisting code depends on the current '--target=es5' transformation of the spread into a call to .apply(), which is more permissive. (See issue see #14362 for more details.)

@msftclas
Copy link
Copy Markdown

msftclas commented Mar 1, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@mhegazy mhegazy merged commit 9796557 into microsoft:master Mar 1, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

3 participants