diff --git a/qjs.c b/qjs.c index 105af0c..1c38cd6 100644 --- a/qjs.c +++ b/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), "", JS_EVAL_TYPE_MODULE);