Skip to content

Convert the code in src/core/image.js to use ES6 classes #12059

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 1 commit into from
Jul 5, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Jul 5, 2020

This removes additional // eslint-disable-next-line no-shadow usage, which our old pseudo-classes necessitated.

Please note: I'm purposely not doing any var to let/const conversion here, since it's generally better to (if possible) do that automatically on e.g. a directory basis instead.

Much smaller diff with https://github.com/mozilla/pdf.js/pull/12059/files?w=1

This removes additional `// eslint-disable-next-line no-shadow` usage, which our old pseudo-classes necessitated.

*Please note:* I'm purposely not doing any `var` to `let`/`const` conversion here, since it's generally better to (if possible) do that automatically on e.g. a directory basis instead.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2020

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/9e6abc7eed7ffeb/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2020

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/3870e267e865551/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/9e6abc7eed7ffeb/output.txt

Total script time: 26.24 mins

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

Image differences available at: http://54.67.70.0:8877/9e6abc7eed7ffeb/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jul 5, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/3870e267e865551/output.txt

Total script time: 30.14 mins

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

Image differences available at: http://54.215.176.217:8877/3870e267e865551/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit c4255fd into mozilla:master Jul 5, 2020
@timvandermeij
Copy link
Contributor

Looks good!

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