Update qjs.c

This commit is contained in:
The Ghost of FOSS' Future 2025-01-09 00:36:32 +00:00 committed by GitHub
parent ecce83d642
commit 7f9a72d70c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

8
qjs.c
View file

@ -668,8 +668,6 @@ start:
eval_buf(ctx, str, strlen(str), "<input>", JS_EVAL_TYPE_MODULE);
}
// polyfiller(ctx);
for(i = 0; i < include_count; i++) {
if (eval_file(ctx, include_list[i], 0))
goto fail;
@ -714,14 +712,16 @@ start:
if (eval_file(ctx, filename, module))
goto fail;
}
polyfiller(ctx);
if (interactive) {
polyfiller(ctx);
js_std_eval_binary(ctx, qjsc_repl, qjsc_repl_size, 0);
}
if (standalone || compile_file) {
polyfiller(ctx);
if (JS_IsException(ret)) {
r = 1;
} else {