Skip to content

Commit 5473d10

Browse files
committed
Eval CLI included files as scripts
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.
1 parent caa1bf5 commit 5473d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ int main(int argc, char **argv)
530530
}
531531

532532
for(i = 0; i < include_count; i++) {
533-
if (eval_file(ctx, include_list[i], module))
533+
if (eval_file(ctx, include_list[i], JS_EVAL_TYPE_GLOBAL))
534534
goto fail;
535535
}
536536

0 commit comments

Comments
 (0)