add more descriptive comments to polyfill comments
Some checks failed
ci / Linux (Ubuntu) (push) Has been cancelled
ci / linux-asan (push) Has been cancelled
ci / linux-msan (push) Has been cancelled
ci / linux-ubsan (push) Has been cancelled
ci / macOS (push) Has been cancelled
ci / macos-asan (push) Has been cancelled
ci / macos-ubsan (push) Has been cancelled
ci / freebsd (push) Has been cancelled
ci / qemu-alpine (arm32v6) (push) Has been cancelled
ci / qemu-alpine (arm32v7) (push) Has been cancelled
ci / qemu-alpine (arm64v8) (push) Has been cancelled
ci / qemu-alpine (i386) (push) Has been cancelled
ci / qemu-alpine (s390x) (push) Has been cancelled
Some checks failed
ci / Linux (Ubuntu) (push) Has been cancelled
ci / linux-asan (push) Has been cancelled
ci / linux-msan (push) Has been cancelled
ci / linux-ubsan (push) Has been cancelled
ci / macOS (push) Has been cancelled
ci / macos-asan (push) Has been cancelled
ci / macos-ubsan (push) Has been cancelled
ci / freebsd (push) Has been cancelled
ci / qemu-alpine (arm32v6) (push) Has been cancelled
ci / qemu-alpine (arm32v7) (push) Has been cancelled
ci / qemu-alpine (arm64v8) (push) Has been cancelled
ci / qemu-alpine (i386) (push) Has been cancelled
ci / qemu-alpine (s390x) (push) Has been cancelled
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…
Reference in a new issue