aboutsummaryrefslogtreecommitdiff
path: root/src/js/thirdparty/detect-libc.linux.js
diff options
context:
space:
mode:
authorGravatar fehnomenal <fehnomenal@fehn.systems> 2023-09-11 17:49:57 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-11 08:49:57 -0700
commitb55b511f685d0520ba2110b1182980ac80a7b3b7 (patch)
tree2545e9d5fd10df649259f3a810e93ab35efca4ac /src/js/thirdparty/detect-libc.linux.js
parent49b9306dce8df8d3c036326c48409ff87847473b (diff)
downloadbun-b55b511f685d0520ba2110b1182980ac80a7b3b7.tar.gz
bun-b55b511f685d0520ba2110b1182980ac80a7b3b7.tar.zst
bun-b55b511f685d0520ba2110b1182980ac80a7b3b7.zip
Make detect-libc package match the upstream api (#4910)
Diffstat (limited to 'src/js/thirdparty/detect-libc.linux.js')
-rw-r--r--src/js/thirdparty/detect-libc.linux.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/thirdparty/detect-libc.linux.js b/src/js/thirdparty/detect-libc.linux.js
index 2866b18c0..1c17acb86 100644
--- a/src/js/thirdparty/detect-libc.linux.js
+++ b/src/js/thirdparty/detect-libc.linux.js
@@ -10,11 +10,11 @@ function familySync() {
const GLIBC = "glibc";
const MUSL = "musl";
-function versionAsync() {
- return Promise.resolve(version());
+function version() {
+ return Promise.resolve(versionSync());
}
-function version() {
+function versionSync() {
return "2.29";
}
@@ -34,5 +34,5 @@ export default {
isNonGlibcLinux,
isNonGlibcLinuxSync,
version,
- versionAsync,
+ versionSync,
};