fmt(js): `npm run fix` on merge (#84193)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-08-12 01:41:34 +00:00 committed by GitHub
parent ed0e707914
commit 9da6d455c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 14 deletions

View File

@ -86,7 +86,11 @@ test('manual flag survives the round trip and defaults false', () => {
assert.equal(result.manual, true)
write(home, { ok: true, exit_code: 0, message: 'done', branch: 'main', finished_at: Math.floor(Date.now() / 1000) })
assert.equal(readAndConsumeHandoffResult(home)?.manual, false, 'older writers without the field parse as manual:false')
assert.equal(
readAndConsumeHandoffResult(home)?.manual,
false,
'older writers without the field parse as manual:false'
)
})
test('an old manual result survives the freshness window but an old ordinary one does not', () => {

View File

@ -3373,15 +3373,7 @@ async function applyUpdatesPosixHandoff(opts: any) {
// best effort
}
const args = [
...handoff.args,
'--install-root',
updateRoot,
'--branch',
branch,
'--desktop-pid',
String(process.pid)
]
const args = [...handoff.args, '--install-root', updateRoot, '--branch', branch, '--desktop-pid', String(process.pid)]
// Relaunch target: the running .app bundle on mac (script swaps the
// rebuilt bundle over it), the running binary elsewhere. The script's gate
@ -3427,9 +3419,7 @@ async function applyUpdatesPosixHandoff(opts: any) {
writeUpdateMarker(HERMES_HOME, child.pid)
}
rememberLog(
`[updates] launched posix hand-off: ${handoff.scriptPath} (branch ${branch}); quitting to hand off`
)
rememberLog(`[updates] launched posix hand-off: ${handoff.scriptPath} (branch ${branch}); quitting to hand off`)
emitUpdateProgress({
stage: 'restart',
message:
@ -3445,7 +3435,6 @@ async function applyUpdatesPosixHandoff(opts: any) {
return { ok: true, handedOff: true, updater: handoff.scriptPath }
}
function readJson(filePath) {
try {
return JSON.parse(fs.readFileSync(filePath, 'utf8'))