We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tee -a
1 parent 95af7b0 commit 58bf163Copy full SHA for 58bf163
packages/web-host/overrides/@bytecodealliance/preview2-shim/lib/browser/filesystem.js
@@ -120,7 +120,17 @@ class Descriptor {
120
}
121
122
appendViaStream() {
123
- console.log(`[filesystem] APPEND STREAM`);
+ const entry = this.#entry;
124
+ return new OutputStream({
125
+ write (buf) {
126
+ const entrySource = getSource(entry);
127
+ const newSource = new Uint8Array(buf.byteLength + entrySource.byteLength);
128
+ newSource.set(entrySource, 0);
129
+ newSource.set(buf, entrySource.byteLength);
130
+ entry.source = newSource;
131
+ return buf.byteLength;
132
+ }
133
+ });
134
135
136
advise(descriptor, offset, length, advice) {
0 commit comments