-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[wasm] Rework fetch #61639
[wasm] Rework fetch #61639
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
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.
Looks fine assuming nothing breaks
return <Response><any> { | ||
ok: true, | ||
ok: false, |
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.
Maybe store the error as a property so the caller can find out what the error was without an extra throw+catch
} | ||
else if (ENVIRONMENT_IS_NODE) { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const fs = require("fs"); |
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.
This will do require
for each call of the _fetch_asset
. I admit the previous implementation had the same issue.
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 strongly prefer the async variant for NodeJs. readFileSync
is "stop the world and wait for disk" for node engine.
Oddly enough that was entirely accidental, I should be a little more careful about what completions I accept. |
it seems there are lint issue
|
I wonder why only staging pipeline failed, not the |
No description provided.