-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fetch polyfill #312
Fetch polyfill #312
Conversation
45fe484
to
c35328b
Compare
8dc07f5
to
6757fba
Compare
6757fba
to
adfffd2
Compare
follow-up: #319 |
src/polyfill/fetch.zig
Outdated
// wget $(npm view whatwg-fetch dist.tarball) | ||
// | ||
// The source is the content of `package/dist/fetch.umd.js` file. | ||
pub const source = |
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.
What about commit the js file directly and use the directive @embedFile
?
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.
It will be easier to read and modify if needed.
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.
I didn't know @embedFile
, ty 🙏
It's much better to keep a separated pure js file.
tests/html/await-fetch.html
Outdated
@@ -0,0 +1,10 @@ | |||
<script> |
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.
Where is this test is played?
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.
I used the file for manual tests. Removed now.
No description provided.