diff --git a/qjs.c b/qjs.c index c75e73b..5d18f7b 100644 --- a/qjs.c +++ b/qjs.c @@ -501,7 +501,7 @@ int main(int argc, char **argv) " return y;\n" "}\n" "globalThis.require = require;\n" - "globalThis.global = global;\n"; + "globalThis.global = globalThis;\n"; eval_buf(ctx, reqPF, strlen(reqPF), "", JS_EVAL_TYPE_MODULE); for(i = 0; i < include_count; i++) {