Skip to content

Use ts.indexOf instead of Array.prototype.indexOf#5569

Merged
mhegazy merged 2 commits into
microsoft:masterfrom
mihailik:patch-2
Nov 11, 2015
Merged

Use ts.indexOf instead of Array.prototype.indexOf#5569
mhegazy merged 2 commits into
microsoft:masterfrom
mihailik:patch-2

Conversation

@mihailik
Copy link
Copy Markdown
Contributor

@mihailik mihailik commented Nov 9, 2015

ts.indexOf is employed instead of Array.prototype.indexOf consistently across tsc/services codebase for the sake of ES3-compatibility.

Once in a while somebody checks in code breaking that edge case, and in time I (or somebody else) pick on that and offer a patch.

This is one of those cases.

Please don't break ES3-compatibility intentionally. For occasional unintentional breaks I'll try to keep up.
Many thanks!

(keep consistent with the rest of codebase, and thus enable ES3-compatibility of tsc and services)
(keep consistent with the rest of codebase, and thus enable ES3-compatibility of tsc and services)
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 9, 2015

thanks @mihailik. Do you mind signing the CLA.

MartyIX referenced this pull request in MartyIX/TypeScript Nov 9, 2015
@mihailik
Copy link
Copy Markdown
Contributor Author

I'm sorry that CLA is a bit complicated logistics with my employer. The changes are trivial, would you please accept if I split PR in two seprate ones?

@RyanCavanaugh
Copy link
Copy Markdown
Member

@mhegazy do we have the ability to decide this is a non-CLA trivial change?

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 11, 2015

@mihailik the CLA has recently changed and does not require your employer approval if you are doing this on your own time.

mhegazy added a commit that referenced this pull request Nov 11, 2015
Use ts.indexOf instead of Array.prototype.indexOf
@mhegazy mhegazy merged commit 00aa3c8 into microsoft:master Nov 11, 2015
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Nov 11, 2015

thanks @mihailik.

@mihailik
Copy link
Copy Markdown
Contributor Author

Cheers! Signed

@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.

4 participants