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 value === (value | 0) checks with Number.isInteger(value) #8889

Merged
merged 2 commits into from
Sep 9, 2017
Merged

Replace value === (value | 0) checks with Number.isInteger(value) #8889

merged 2 commits into from
Sep 9, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Sep 9, 2017

Rather than doing what (at first) may seem like a fairly obscure comparison, using Number.isInteger will clearly indicate the intent of the code.

… in the `src/` folder

Rather than doing what (at first) may seem like a fairly obscure comparison, using `Number.isInteger` will clearly indicate the intent of the code.
… in the `web/` folder

Rather than doing what (at first) may seem like a fairly obscure comparison, using `Number.isInteger` will clearly indicate the intent of the code.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/6d3c70d025f6817/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/f3e379a55b67515/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/f3e379a55b67515/output.txt

Total script time: 16.68 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/6d3c70d025f6817/output.txt

Total script time: 29.84 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit bd3f16b into mozilla:master Sep 9, 2017
@timvandermeij
Copy link
Contributor

Good improvement!

@Snuffleupagus Snuffleupagus deleted the more-Number-isInteger branch September 9, 2017 17:50
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Replace `value === (value | 0)` checks with `Number.isInteger(value)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants