Skip to content

Commit

Permalink
Formatting and comments. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Dec 22, 2023
1 parent 15beefd commit 3d4e95a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/api-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class BaseApplication {
}

async _fetchObject(obj, fetchFn) {
// Mutate the object being fetched, to avoid re-fetches within the same session.
for (const [key, value] of Object.entries(obj)) {
if (value instanceof URL) {
console.log(`[YoWASP runtime] Fetching resource file ${value}`);
Expand Down
6 changes: 3 additions & 3 deletions lib/wasi-virt.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ export class Environment {
now: wallClockNow
},
random: {
getRandomBytes: getRandomBytes
getRandomBytes,
},
io: {
Error: IoError,
InputStream,
OutputStream
OutputStream,
},
cli: {
exit(status) { throw new Exit(status.tag === 'ok' ? 0 : 1); },
Expand All @@ -377,7 +377,7 @@ export class Environment {
getDirectories() {
if ($this.root === null) return [];
return [[new Descriptor($this.root), "/"]];
}
},
}
};
}
Expand Down

0 comments on commit 3d4e95a

Please sign in to comment.