Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/libwasmfs_fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ addToLibrary({
if (!response.ok) {
throw response;
}
var bytes = await response.bytes();
var bytes = await response['bytes']();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK landing this this way. I will see if I can find a way to teach closure about this as a followup.

for (i = firstChunk; i <= lastChunk; i++) {
wasmFS$JSMemoryRanges[file].chunks[i] = bytes.slice(i*chunkSize-start,(i+1)*chunkSize-start);
}
Expand Down