Skip to content

Commit e124722

Browse files
committed
Improve array immutability in stdio-ipc
1 parent 47e2a56 commit e124722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shadow/stdio-ipc.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function ensureIpcInStdio(
1515
if (!stdio.includes('ipc')) {
1616
return stdio.concat('ipc')
1717
}
18-
return stdio
18+
return stdio.slice()
1919
} else {
2020
return ['pipe', 'pipe', 'pipe', 'ipc']
2121
}

0 commit comments

Comments
 (0)