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 the remaining occurences of instanceof Array with Array.isArray() #9881

Merged
merged 2 commits into from
Jul 14, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

Follow-up to PRs #8864 and #8813.

As explained in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray, instanceof Array can have inconsistent behavior. To ensure that only Array.isArray is used, an ESLint plugin/rule is added to enforce this.

…Array()`

*Follow-up to PRs 8864 and 8813.*

As explained in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray, `instanceof Array` can have inconsistent behavior. To ensure that only `Array.isArray` is used, an ESLint plugin/rule is added to enforce this.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Jul 9, 2018

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/d224a104d168103/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 9, 2018

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/73ba90349598f9a/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 9, 2018

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/d224a104d168103/output.txt

Total script time: 5.88 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jul 9, 2018

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/73ba90349598f9a/output.txt

Total script time: 9.40 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit 1f245c2 into mozilla:master Jul 14, 2018
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the rm-instanceof-Array branch July 15, 2018 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants