Forgot to mention in previous commit - added a hacky polyfill

This commit is contained in:
The Ghost of FOSS' Past 2024-10-24 14:29:28 -05:00
parent 51ec4ed20b
commit abf99613fb

2
qjs.c
View file

@ -494,7 +494,7 @@ int main(int argc, char **argv)
"globalThis.os = os;\n"; "globalThis.os = os;\n";
eval_buf(ctx, str, strlen(str), "<input>", JS_EVAL_TYPE_MODULE); eval_buf(ctx, str, strlen(str), "<input>", JS_EVAL_TYPE_MODULE);
} }
//POLYFILLS BEGIN //POLYFILLS BEGIN
const char *reqPF = "function require(x) { \n" const char *reqPF = "function require(x) { \n"
" import { y } from `String(x)` \n" " import { y } from `String(x)` \n"
" return y \n" " return y \n"