add more descriptive comments to polyfill comments

This commit is contained in:
Arma-Damna-Dillo 2024-10-25 13:04:38 -05:00
parent 7b5659c307
commit c7290cc528

4
qjs.c
View file

@ -99,7 +99,7 @@ static int eval_file(JSContext *ctx, const char *filename, int module)
else
eval_flags = JS_EVAL_TYPE_GLOBAL;
//POLYFILLS BEGIN
//POLYFILLS FOR QJS FILES BEGIN
const char *pf = "globalThis.global = globalThis;\n"
"global.console.error = console.log\n"
"global.console.warn = console.log\n"
@ -547,7 +547,7 @@ int main(int argc, char **argv)
js_std_eval_binary(ctx, qjsc_repl, qjsc_repl_size, 0);
}
//POLYFILLS BEGIN
//POLYFILLS FOR QJS REPL BEGIN
const char *pf = "globalThis.global = globalThis;\n"
"global.console.error = console.log\n"
"global.console.warn = console.log\n"