flix global

This commit is contained in:
The Ghost of FOSS' Past 2024-10-24 15:10:12 -05:00
parent b0cc1aa457
commit c6c98a254c

2
qjs.c
View file

@ -501,7 +501,7 @@ int main(int argc, char **argv)
" return y;\n" " return y;\n"
"}\n" "}\n"
"globalThis.require = require;\n" "globalThis.require = require;\n"
"globalThis.global = global;\n"; "globalThis.global = globalThis;\n";
eval_buf(ctx, reqPF, strlen(reqPF), "<input>", JS_EVAL_TYPE_MODULE); eval_buf(ctx, reqPF, strlen(reqPF), "<input>", JS_EVAL_TYPE_MODULE);
for(i = 0; i < include_count; i++) { for(i = 0; i < include_count; i++) {