change printf to log
Some checks are pending
ci / Linux (Ubuntu) (push) Waiting to run
ci / linux-asan (push) Waiting to run
ci / linux-msan (push) Waiting to run
ci / linux-ubsan (push) Waiting to run
ci / macOS (push) Waiting to run
ci / macos-asan (push) Waiting to run
ci / macos-ubsan (push) Waiting to run
ci / freebsd (push) Waiting to run
ci / qemu-alpine (arm32v6) (push) Waiting to run
ci / qemu-alpine (arm32v7) (push) Waiting to run
ci / qemu-alpine (arm64v8) (push) Waiting to run
ci / qemu-alpine (i386) (push) Waiting to run
ci / qemu-alpine (s390x) (push) Waiting to run

This commit is contained in:
The Ghost of FOSS' Past 2024-10-24 16:22:27 -05:00
parent 24692fbb5f
commit 978a3f47f3

2
qjs.c
View file

@ -540,7 +540,7 @@ int main(int argc, char **argv)
"if (typeof std !== 'undefined') {\n" "if (typeof std !== 'undefined') {\n"
" globalThis.urlGet = std.urlGet;\n" " globalThis.urlGet = std.urlGet;\n"
" globalThis.loadFile = std.loadFile;\n" " globalThis.loadFile = std.loadFile;\n"
" globalThis.printf = std.printf;\n" " globalThis.printf = console.log;\n"
" globalThis.evalFile = std.loadScript;\n" " globalThis.evalFile = std.loadScript;\n"
" globalThis.getURL = std.urlGet;\n" " globalThis.getURL = std.urlGet;\n"
"} else {\n" "} else {\n"