mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Eval CLI included files as scripts
After 8cd59bf7c4
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.
This commit is contained in:
parent
cc11a829e8
commit
0c8aeb1d50
1 changed files with 1 additions and 1 deletions
2
qjs.c
2
qjs.c
|
@ -530,7 +530,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0; i < include_count; i++) {
|
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;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue