Update quickjs-libc.c
Some checks are pending
ci / codegen (push) Waiting to run
ci / ubuntu-latest (riscv64) (push) Waiting to run
ci / ubuntu-latest (s390x) (push) Waiting to run
ci / ubuntu-latest (x86) (push) Waiting to run
ci / macos-14 (Debug) (push) Waiting to run
ci / ubuntu-latest (Debug) (push) Waiting to run
ci / macos-14 (Release) (push) Waiting to run
ci / ubuntu-latest (Release) (push) Waiting to run
ci / macos-14 (asan+ubsan) (push) Waiting to run
ci / ubuntu-latest (asan+ubsan) (push) Waiting to run
ci / macos-14 (examples) (push) Waiting to run
ci / ubuntu-latest (examples) (push) Waiting to run
ci / ubuntu-latest (msan) (push) Waiting to run
ci / macos-14 (shared) (push) Waiting to run
ci / ubuntu-latest (shared) (push) Waiting to run
ci / ubuntu-latest (tcc) (push) Waiting to run
ci / windows-msvc (Win32, Debug) (push) Waiting to run
ci / windows-msvc (Win32, Release) (push) Waiting to run
ci / windows-msvc (x64, Debug) (push) Waiting to run
ci / windows-msvc (x64, Release) (push) Waiting to run
ci / windows-msvc-vs2019 (Win32, Debug) (push) Waiting to run
ci / windows-msvc-vs2019 (Win32, Release) (push) Waiting to run
ci / windows-msvc-vs2019 (x64, Debug) (push) Waiting to run
ci / windows-msvc-vs2019 (x64, Release) (push) Waiting to run
ci / windows-clang (Debug) (push) Waiting to run
ci / windows-clang (Release) (push) Waiting to run
ci / windows-ninja (Debug) (push) Waiting to run
ci / windows-ninja (Release) (push) Waiting to run
ci / windows-sdk (Win32, Debug) (push) Waiting to run
ci / windows-sdk (Win32, Release) (push) Waiting to run
ci / windows-sdk (x64, Debug) (push) Waiting to run
ci / windows-sdk (x64, Release) (push) Waiting to run
ci / windows-mingw (Debug, clang64) (push) Waiting to run
ci / windows-mingw (Debug, mingw32) (push) Waiting to run
ci / windows-mingw (Debug, mingw64) (push) Waiting to run
ci / windows-mingw (Debug, ucrt64) (push) Waiting to run
ci / windows-mingw (Release, clang64) (push) Waiting to run
ci / windows-mingw (Release, mingw32) (push) Waiting to run
ci / windows-mingw (Release, mingw64) (push) Waiting to run
ci / windows-mingw (Release, ucrt64) (push) Waiting to run
ci / windows-mingw-shared (push) Waiting to run
ci / emscripten (push) Waiting to run
ci / wasi (push) Waiting to run
ci / cygwin (push) Waiting to run
ci / openbsd (push) Waiting to run
ci / freebsd (push) Waiting to run
ci / android (push) Waiting to run
ci / ios (push) Waiting to run
ci / mimalloc-linux (push) Waiting to run
ci / mimalloc-macos (push) Waiting to run
tsan / linux (push) Waiting to run
valgrind / linux (push) Waiting to run

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