forgot semicolons

This commit is contained in:
The Ghost of FOSS' Past 2024-10-24 16:03:02 -05:00
parent 807be22562
commit 94d52bfdc6

18
qjs.c
View file

@ -502,15 +502,15 @@ int main(int argc, char **argv)
" return y;\n"
"}\n"
"globalThis.require = require;\n"
"globalThis.global = globalThis;\n"
"globalThis.setTimeout = os.setTimeout\n"
"globalThis.clearTimeout = os.clearTimeout\n"
"globalThis.sleep = os.sleep\n"
"globalThis.urlGet = std.urlGet\n"
"globalThis.loadFile = std.loadFile\n"
"globalThis.printf = std.printf\n"
"globalThis.evalFile = std.loadScript\n"
"globalThis.getURL = std.urlGet";
"globalThis.setTimeout = os.setTimeout;\n"
"globalThis.clearTimeout = os.clearTimeout;\n"
"globalThis.sleep = os.sleep;\n"
"globalThis.urlGet = std.urlGet;\n"
"globalThis.loadFile = std.loadFile;\n"
"globalThis.printf = std.printf;\n"
"globalThis.evalFile = std.loadScript;\n"
"globalThis.getURL = std.urlGet;\n"
"globalThis.global = globalThis;\n";
eval_buf(ctx, pf, strlen(pf), "<input>", JS_EVAL_TYPE_MODULE);