fmt(js): npm run fix on merge (#66741)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
nousbot-eng 2026-07-18 01:16:25 -04:00 committed by GitHub
parent 443981ae97
commit c48d53413a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 11 deletions

View file

@ -8690,9 +8690,7 @@ function ensureNodePtySpawnHelper() {
rememberLog(`[terminal] could not chmod spawn-helper ${failure.path}: ${failure.error}`)
}
} catch (error) {
rememberLog(
`[terminal] spawn-helper exec check skipped: ${error instanceof Error ? error.message : String(error)}`
)
rememberLog(`[terminal] spawn-helper exec check skipped: ${error instanceof Error ? error.message : String(error)}`)
}
}

View file

@ -69,10 +69,7 @@ test('needsExecBit / withExecBits treat any missing exec bit as non-executable',
test('candidates cover every prebuild dir plus build/Release', () => {
const root = '/pkg/node-pty'
const fs = fakeFs(
{},
{ [join(root, 'prebuilds')]: ['darwin-arm64', 'darwin-x64', 'linux-x64'] }
)
const fs = fakeFs({}, { [join(root, 'prebuilds')]: ['darwin-arm64', 'darwin-x64', 'linux-x64'] })
assert.deepEqual(spawnHelperCandidates(root, fs), [
join(root, 'prebuilds', 'darwin-arm64', 'spawn-helper'),
@ -117,10 +114,7 @@ test('chmod failures are collected, not thrown', () => {
const root = '/pkg/node-pty'
const arm = join(root, 'prebuilds', 'darwin-arm64', 'spawn-helper')
const fs = fakeFs(
{ [arm]: { mode: 0o644, chmodThrows: true } },
{ [join(root, 'prebuilds')]: ['darwin-arm64'] }
)
const fs = fakeFs({ [arm]: { mode: 0o644, chmodThrows: true } }, { [join(root, 'prebuilds')]: ['darwin-arm64'] })
const result = ensureSpawnHelperExecutable(root, fs)