-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Update the Path2D
polyfill for Node.js environments
#17830
Update the Path2D
polyfill for Node.js environments
#17830
Conversation
1db41d2
to
b14e4ee
Compare
b14e4ee
to
eb0b75b
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1939a31de59b6a9/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/83ef169d384de67/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/1939a31de59b6a9/output.txt Total script time: 2.51 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/83ef169d384de67/output.txt Total script time: 10.29 mins
|
The polyfill that we use was recently split into two packages, and it now consists of a "core" package and a browser-specific package that build upon the former. Hence we need to update to use the "core" package, and slightly tweak the code that loads/initializes the polyfill; see also https://www.npmjs.com/package/path2d This patch was tested successfully with the [pdf2png example](https://github.com/mozilla/pdf.js/tree/master/examples/node/pdf2png), after running `gulp dist-install` locally, using [this PDF document](https://bug810214.bmoattachments.org/attachment.cgi?id=9254990) which contains Type3-fonts that render using `Path2D`.
eb0b75b
to
dc0df0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The polyfill that we use was recently split into two packages, and it now consists of a "core" package and a browser-specific package that build upon the former.
Hence we need to update to use the "core" package, and slightly tweak the code that loads/initializes the polyfill; see also https://www.npmjs.com/package/path2d
This patch was tested successfully with the pdf2png example, after running
gulp dist-install
locally, using this PDF document which contains Type3-fonts that render usingPath2D
.