-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Convert examples/image_decoders/jpeg_viewer.js to await/async #14123 #14167
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/image_decoders/jpeg_viewer.js to await/async #14123 #14167
Conversation
@brendandahl and @marco-c Please help review. Thanks. |
8b9fa0d
to
322ad53
Compare
322ad53
to
8f397e2
Compare
// Load the image data, and convert it to a Uint8Array. | ||
// |
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.
As was also mentioned in #14167 (comment), please move this comment to just above the const response = await fetch(JPEG_IMAGE);
-line instead.
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.
Okay. Done!
8f397e2
to
f263c86
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, thank you.
Thanks for your help and support too! |
This converts examples/image_decoders/jpeg_viewers.js from using the old
XMLHttpRequest
toasync/await
.This pull request
Convert examples/image_decoders/jpeg_viewers.js to await/async
Issue that this pull request solves
Closes: #14123
Checklist
Put an x in the boxes that apply