Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Sep 18, 2018

Noticed while reviewing #27188 that we never actually need a NodeArray, we can just use ReadonlyArrays everywhere.
All remaining X[] arrays cause a compile error if changed to ReadonlyArray.
Also using emptyArray instead of [] where possible to reduce allocations.

@ghost ghost requested a review from uniqueiniquity September 18, 2018 17:19
@ghost ghost force-pushed the convertToAsyncFunction_readonlyarray branch from bc4f4c6 to c688f99 Compare September 18, 2018 17:19
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.2 milestone Sep 18, 2018
@RyanCavanaugh
Copy link
Member

Approved but please wait to merge until the last master train goes in (late today)

@ghost ghost merged commit 5f563c9 into master Sep 20, 2018
@ghost ghost deleted the convertToAsyncFunction_readonlyarray branch September 20, 2018 23:45
@uniqueiniquity uniqueiniquity mentioned this pull request Oct 9, 2018
@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.

2 participants