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

Convert the code in `src/core/colorspace.js to use ES6 classes #10007

Merged
merged 2 commits into from
Aug 25, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

  • Reduces the amount of boilerplate code when defining the the sub-classes.

    Please note that a couple of the closures were kept, since it's not (yet) possible to include helper functions inside of classes.

  • Replace all occurences of var with let/const in src/core/colorspace.js


Note: For easier reviewing, I'd suggest looking at one commit at a time and also using the ?w=1 URL flag to reduce the size of particularly the first diff.

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/24ad212581b0ab4/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/3b9c7505dd159de/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/24ad212581b0ab4/output.txt

Total script time: 6.75 mins

  • Lint: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/3b9c7505dd159de/output.txt

Total script time: 24.95 mins

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

Reduces the amount of boilerplate code when defining the the sub-classes.

Please note that a couple of the closures were kept, since it's not (yet) possible to include helper functions inside of `class`es.
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/05e53a6928a1ca9/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/9b9a7ba8ea16ed4/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/05e53a6928a1ca9/output.txt

Total script time: 6.73 mins

  • Lint: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/9b9a7ba8ea16ed4/output.txt

Total script time: 24.54 mins

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

@timvandermeij timvandermeij merged commit 436d2ef into mozilla:master Aug 25, 2018
@timvandermeij
Copy link
Contributor

Thank you! Looks much easier this way.

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