Update qjs.c

This commit is contained in:
The Ghost of FOSS' Future 2025-01-09 00:57:49 +00:00 committed by GitHub
parent 7d750e11ba
commit c50f3ac3e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
qjs.c
View file

@ -181,10 +181,7 @@ static int eval_file(JSContext *ctx, const char *filename, int module)
else else
eval_flags = JS_EVAL_TYPE_GLOBAL; eval_flags = JS_EVAL_TYPE_GLOBAL;
//POLYFILLS FOR QJS FILES BEGIN
eval_buf(ctx, pf, strlen(pf), "<input>", JS_EVAL_TYPE_MODULE); eval_buf(ctx, pf, strlen(pf), "<input>", JS_EVAL_TYPE_MODULE);
ret = eval_buf(ctx, buf, buf_len, filename, eval_flags); ret = eval_buf(ctx, buf, buf_len, filename, eval_flags);
js_free(ctx, buf); js_free(ctx, buf);
return ret; return ret;
@ -677,7 +674,7 @@ start:
} }
//POLYFILLS FOR QJS INTERACTIVE BEGIN //POLYFILLS FOR QJS INTERACTIVE BEGIN
//eval_buf(ctx, pf, strlen(pf), "<input>", JS_EVAL_TYPE_MODULE); eval_buf(ctx, pf, strlen(pf), "<input>", JS_EVAL_TYPE_MODULE);
if (standalone) { if (standalone) {
JSValue ns = load_standalone_module(ctx); JSValue ns = load_standalone_module(ctx);