Skip to content

Commit 7a93622

Browse files
authored
fix: typo glibcRuntimeVersion glibcVersionRuntime (#57)
1 parent f18d5b0 commit 7a93622

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const checkPlatform = (target, force = false) => {
4040
libcOk = false
4141
} else {
4242
const report = process.report.getReport()
43-
if (report.header?.glibcRuntimeVersion) {
43+
if (report.header?.glibcVersionRuntime) {
4444
libcFamily = 'glibc'
4545
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
4646
libcFamily = 'musl'

test/check-platform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ t.test('libc', (t) => {
8181

8282
REPORT = { header: {} }
8383
t.throws(() => checkPlatform({ libc: 'glibc' }), { code: 'EBADPLATFORM' },
84-
'fails when header is missing glibcRuntimeVersion property')
84+
'fails when header is missing glibcVersionRuntime property')
8585

86-
REPORT = { header: { glibcRuntimeVersion: '1' } }
86+
REPORT = { header: { glibcVersionRuntime: '1' } }
8787
t.doesNotThrow(() => checkPlatform({ libc: 'glibc' }), 'allows glibc on glibc')
8888
t.throws(() => checkPlatform({ libc: 'musl' }), { code: 'EBADPLATFORM' },
8989
'does not allow musl on glibc')

0 commit comments

Comments
 (0)