forgot semicolons
This commit is contained in:
parent
807be22562
commit
94d52bfdc6
1 changed files with 9 additions and 9 deletions
18
qjs.c
18
qjs.c
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue