mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Update qjs.c
This commit is contained in:
parent
7f9a72d70c
commit
c47ebab939
1 changed files with 2 additions and 4 deletions
6
qjs.c
6
qjs.c
|
@ -668,6 +668,8 @@ start:
|
||||||
eval_buf(ctx, str, strlen(str), "<input>", JS_EVAL_TYPE_MODULE);
|
eval_buf(ctx, str, strlen(str), "<input>", JS_EVAL_TYPE_MODULE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
polyfiller(ctx);
|
||||||
|
|
||||||
for(i = 0; i < include_count; i++) {
|
for(i = 0; i < include_count; i++) {
|
||||||
if (eval_file(ctx, include_list[i], 0))
|
if (eval_file(ctx, include_list[i], 0))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -714,14 +716,10 @@ start:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (interactive) {
|
if (interactive) {
|
||||||
polyfiller(ctx);
|
|
||||||
|
|
||||||
js_std_eval_binary(ctx, qjsc_repl, qjsc_repl_size, 0);
|
js_std_eval_binary(ctx, qjsc_repl, qjsc_repl_size, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (standalone || compile_file) {
|
if (standalone || compile_file) {
|
||||||
polyfiller(ctx);
|
|
||||||
|
|
||||||
if (JS_IsException(ret)) {
|
if (JS_IsException(ret)) {
|
||||||
r = 1;
|
r = 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue