From c50f3ac3e186038e6623fd6613f663fff6f5d91d 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:57:49 +0000 Subject: [PATCH] Update qjs.c --- qjs.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qjs.c b/qjs.c index 267b691..a636081 100644 --- a/qjs.c +++ b/qjs.c @@ -181,10 +181,7 @@ static int eval_file(JSContext *ctx, const char *filename, int module) else eval_flags = JS_EVAL_TYPE_GLOBAL; - //POLYFILLS FOR QJS FILES BEGIN - eval_buf(ctx, pf, strlen(pf), "", JS_EVAL_TYPE_MODULE); - - + eval_buf(ctx, pf, strlen(pf), "", JS_EVAL_TYPE_MODULE); ret = eval_buf(ctx, buf, buf_len, filename, eval_flags); js_free(ctx, buf); return ret; @@ -677,7 +674,7 @@ start: } //POLYFILLS FOR QJS INTERACTIVE BEGIN - //eval_buf(ctx, pf, strlen(pf), "", JS_EVAL_TYPE_MODULE); + eval_buf(ctx, pf, strlen(pf), "", JS_EVAL_TYPE_MODULE); if (standalone) { JSValue ns = load_standalone_module(ctx);