fix pipe issue in REPL, add ability to dump top in repl

This commit is contained in:
2026-02-09 10:36:59 -08:00
parent 08ed4178cf
commit a17a9c4342
5 changed files with 10 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ export let shim: NodeShim = {
writeFileSync(name: string, data: string, enc?: string) {
shim.files[name] = new TextEncoder().encode(data)
},
writeSync(fd: number, data: string) {
shim.stdout += data;
}
},
process: {
argv: ["", ""],