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.
1 parent 012d0d2 commit d257e52Copy full SHA for d257e52
src/gleam_stdlib.mjs
@@ -342,7 +342,7 @@ export function bit_array_to_string(bit_array) {
342
}
343
344
export function print(string) {
345
- if (typeof process === "object") {
+ if (typeof process === "object" && process.stdout?.write) {
346
process.stdout.write(string); // We can write without a trailing newline
347
} else if (typeof Deno === "object") {
348
Deno.stdout.writeSync(new TextEncoder().encode(string)); // We can write without a trailing newline
0 commit comments