-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Only bundle the src/display/node_utils.js
file in GENERIC-builds
#14870
Conversation
This first of all simplifies the file, since we no longer need dummy-classes and can instead *directly* define the actual classes. Furthermore, and more importantly, this means that we no longer need to bundle this code in e.g. MOZCENTRAL-builds which reduces the size of *built* `pdf.js` file slightly.
Given that the `isNodeJS`-constant will, after PR 14858, *always* be `false` in non-GENERIC builds we can simplify a couple of `getDocument`-parameter default values slightly. The old format, with inline `PDFJSDev`-checks, wasn't exactly a wonder of readability; which was my fault.
/botio-linux browsertest |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e73fbc117b86d56/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/cee370ed515d2b7/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/cee370ed515d2b7/output.txt Total script time: 26.28 mins
Image differences available at: http://54.241.84.105:8877/cee370ed515d2b7/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/e73fbc117b86d56/output.txt Total script time: 26.73 mins
|
Much better; thanks! |
Only bundle the
src/display/node_utils.js
file in GENERIC-buildsThis first of all simplifies the file, since we no longer need dummy-classes and can instead directly define the actual classes.
Furthermore, and more importantly, this means that we no longer need to bundle this code in e.g. MOZCENTRAL-builds which reduces the size of built
pdf.js
file slightly.Simplify a couple of
isNodeJS
-dependentgetDocument
default valuesGiven that the
isNodeJS
-constant will, after PR 14858, always befalse
in non-GENERIC builds we can simplify a couple ofgetDocument
-parameter default values slightly.The old format, with inline
PDFJSDev
-checks, wasn't exactly a wonder of readability; which was my fault.