8000 Control flow analysis for array construction by ahejlsberg · Pull Request #11432 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content

Control flow analysis for array construction #11432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Oct 14, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
AAE4 Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
ahejlsberg committed Oct 12, 2016
commit 38278ee0788bb8dc26b5052f103591b8fd0be0ab
2 changes: 1 addition & 1 deletion src/compiler/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ namespace ts {
return result;
}

// Maps from T to T and avoids allocation of all elements map to themselves
// Maps from T to T and avoids allocation if all elements map to themselves
export function sameMap<T>(array: T[], f: (x: T, i: number) => T): T[] {
let result: T[];
if (array) {
Expand Down
0