Skip to content
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

Replace .includes with .indexOf for older Node 4 versions #1813

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

wyze
Copy link
Member

@wyze wyze commented Nov 14, 2016

Summary

It was reported in #1792 (comment) that this code did not work on Node v4.

Test plan

All tests still pass. Confirmed working on Node v4 here: #1792 (comment)

@wyze
Copy link
Member Author

wyze commented Nov 14, 2016

Failure on CircleCI is not related. Was a timeout with normalize-manifest test.

@wyze wyze merged commit d202c73 into master Nov 14, 2016
@wyze wyze deleted the fix-ls-args-again branch November 14, 2016 16:37
@develar
Copy link

develar commented Nov 14, 2016

Maybe it is better to use babel-plugin-array-includes to avoid such code?

@ljharb
Copy link

ljharb commented Nov 14, 2016

Or https://npm us.com/array-includes :-p then you're version-independent.

@develar
Copy link

develar commented Nov 14, 2016

@ljharb array-includes it is runtime dependency, babel solution has zero-overhead ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants