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 the isSpace utility function from core/parser.js to shared/util.js #7389

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Move the isSpace utility function from core/parser.js to shared/util.js #7389

merged 1 commit into from
Jun 8, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

Currently the isSpace utility function is a member of Lexer, which seems suboptimal, given that it's placed in core/parser.js. In practice, this means that in a number of core/*.js files we thus have an otherwise completely unnecessary dependency on core/parser.js for a one-line function.

Instead, this patch moves isSpace into shared/util.js which seems more appropriate for this kind of utility function. Not to mention that since all the affected core/*.js files already depends on shared/util.js, this doesn't incur any more file dependencies.

…l.js

Currently the `isSpace` utility function is a member of `Lexer`, which seems suboptimal, given that it's placed in `core/parser.js`. In practice, this means that in a number of `core/*.js` files we thus have an *otherwise* completely unnecessary dependency on `core/parser.js` for a one-line function.

Instead, this patch moves `isSpace` into `shared/util.js` which seems more appropriate for this kind of utility function. Not to mention that since all the affected `core/*.js` files already depends on `shared/util.js`, this doesn't incur any more file dependencies.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/20e762a38c90dc1/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/39cfb7eb7f0e431/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/20e762a38c90dc1/output.txt

Total script time: 21.04 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 6, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/39cfb7eb7f0e431/output.txt

Total script time: 28.12 mins

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 8, 2016

From: Bot.io (Linux)


Received

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

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

@timvandermeij timvandermeij merged commit 70b3eea into mozilla:master Jun 8, 2016
@timvandermeij
Copy link
Contributor

Good catch, thank you!

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