Update quickjs-libc.c

This commit is contained in:
The Ghost of FOSS' Future 2025-01-09 01:22:52 +00:00 committed by GitHub
parent b967509707
commit 71cd924e82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -664,9 +664,9 @@ int js_module_set_import_meta(JSContext *ctx, JSValue func_val,
if (use_realpath) {
char *res = realpath(module_name, buf + strlen(buf));
if (!res) {
JS_ThrowTypeError(ctx, "realpath failure");
JS_FreeCString(ctx, module_name);
return -1;
// JS_ThrowTypeError(ctx, "realpath failure"); // bugged so disabled
// JS_FreeCString(ctx, module_name);
// return -1;
}
} else
#endif