Skip to content

Commit

Permalink
Eval CLI included files as scripts
Browse files Browse the repository at this point in the history
After 8cd59bf any file included by qjs
with -I that would parse as a module is eval'd as so, which is usually
not the intent, but rather to define some global functions.
  • Loading branch information
saghul committed Oct 24, 2024
1 parent caa1bf5 commit 40ffa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ int main(int argc, char **argv)
}

for(i = 0; i < include_count; i++) {
if (eval_file(ctx, include_list[i], module))
if (eval_file(ctx, include_list[i], 0))
goto fail;
}

Expand Down

0 comments on commit 40ffa43

Please sign in to comment.