Skip to content

Commit 4ac9082

Browse files
committed
[PortsJS] Changes display prim to not add newline
1 parent 713c88b commit 4ac9082

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ports-js/scheme.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ function addGlobals(env) {
290290
env.set(Sym('pair?'), isPair);
291291

292292

293-
env.set(Sym('display'), (...args) => console.log(...args));
293+
env.set(Sym('display'), (...args) => {
294+
process.stdout.write(args.map((ea) => asString(ea)).join(''));
295+
});
294296

295297
return env;
296298
}

0 commit comments

Comments
 (0)