-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Convert examples/node/pdf2svg.js to await/async #14125 #14159
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 examples/node/pdf2svg.js to await/async #14125 #14159
Conversation
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.
Unfortunately this patch breaks the example, and running it no longer generates any svg
-files at all. For future reference: Please don't submit a pull request unless you've successfully tested it locally.
To test this locally:
- Run
gulp dist-install
. - cd into the
examples/node/
directory. - Run
node pdf2svg.js
. - Repeat step 3 after making changes to the example.
When addressing the comments, please keep https://github.com/mozilla/pdf.js/wiki/Squashing-Commits in mind.
1278cbf
to
7b251aa
Compare
7b251aa
to
10af5da
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.
r=me, with the comment addressed; thank you!
10af5da
to
0643ccb
Compare
Because
pdf2svg.js
uses chain of promisesThis pull request
Convert examples/components/simpleviewer.js to await/async
Issue that this pull request solves
Closes: #14125
Checklist
Put an x in the boxes that apply