add more descriptive comments to polyfill comments
This commit is contained in:
parent
7b5659c307
commit
c7290cc528
1 changed files with 2 additions and 2 deletions
4
qjs.c
4
qjs.c
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue