From c47ebab9394c0d7a4121f653d50dc766921d9a6f Mon Sep 17 00:00:00 2001 From: The Ghost of FOSS' Future <163201376+sneedgroup-holder@users.noreply.github.com> Date: Thu, 9 Jan 2025 00:39:11 +0000 Subject: [PATCH] Update qjs.c --- qjs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qjs.c b/qjs.c index 7ca9e64..fe29a0c 100644 --- a/qjs.c +++ b/qjs.c @@ -668,6 +668,8 @@ start: eval_buf(ctx, str, strlen(str), "", 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 +716,10 @@ start: } 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 {