diff --git a/qjs.c b/qjs.c index e612d89..e2d1557 100644 --- a/qjs.c +++ b/qjs.c @@ -487,14 +487,14 @@ int main(int argc, char **argv) #endif js_std_add_helpers(ctx, argc - optind, argv + optind); - /* make 'std' and 'os' visible to non module code */ - if (load_std) { + /* make 'std' and 'os' visible to all code */ + //if (load_std) { const char *str = "import * as std from 'std';\n" "import * as os from 'os';\n" "globalThis.std = std;\n" "globalThis.os = os;\n"; eval_buf(ctx, str, strlen(str), "", JS_EVAL_TYPE_MODULE); - } + //} for(i = 0; i < include_count; i++) {