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

Move EOF/isEOF from core/parser.js to core/primitives.js #8003

Merged
merged 1 commit into from
Jan 29, 2017
Merged

Move EOF/isEOF from core/parser.js to core/primitives.js #8003

merged 1 commit into from
Jan 29, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

Given the nature of EOF and isEOF, it seems to me that they really ought to be placed in core/primitives.js instead.

In general, it doesn't seem great to have to depend on the entire core/parser.js file for such simple primitives/helper functions.
In particular, while core/ps_parser.js is completely separate from core/parser.js with regards to its function, it still depends on the latter for just one primitive.

Note that compared to e.g. PR #7389, this will not reduce the number of dependencies for core/ps_parser, however the new dependency IMHO makes more sense.

Given the nature of `EOF` and `isEOF`, it seems to me that they really ought to be placed in `core/primitives.js` instead.

In general, it doesn't seem great to have to depend on the entire `core/parser.js` file for such simple primitives/helper functions.
In particular, while `core/ps_parser.js` is completely separate from `core/parser.js` with regards to its function, it still depends on the latter for just *one* primitive.

Note that compared to e.g. PR 7389, this will not reduce the number of dependencies for `core/ps_parser`, however the new dependency IMHO makes more sense.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/7c948aa133b6f25/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/4776accbedc691d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/4776accbedc691d/output.txt

Total script time: 25.41 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/7c948aa133b6f25/output.txt

Total script time: 25.80 mins

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

Image differences available at: http://107.21.233.14:8877/7c948aa133b6f25/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

Snuffleupagus commented Jan 28, 2017

The Windows failures look like fallout from the recent Firefox 53 update on the bot, and #7898 (comment) ought to explain the changes in the forms test cases.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/a1809562058d16d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/a1809562058d16d/output.txt

Total script time: 2.25 mins

Published

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/3be81002871af08/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/2463158b87e2451/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/3be81002871af08/output.txt

Total script time: 25.74 mins

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/2463158b87e2451/output.txt

Total script time: 26.13 mins

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

@timvandermeij timvandermeij merged commit 8d684b5 into mozilla:master Jan 29, 2017
@timvandermeij
Copy link
Contributor

Looks good, thanks!

@Snuffleupagus Snuffleupagus deleted the move-EOF-isEOF branch January 29, 2017 21:37
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Move `EOF`/`isEOF` from core/parser.js to core/primitives.js
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