Commit 7b2a0c3
authored
fix: Widen EBADF fstat version gate to include Node 24.15+ (#7104)
## What's the problem this PR addresses?
#7103
The fix in #7070 added a version gate for the EBADF fstat error:
```js
export const HAS_BROKEN_FSTAT_FOR_ZIP_FDS = major > 25 || (major === 25 && minor >= 7);
```
However, the breaking change from
[nodejs/node#61769](nodejs/node#61769) (`lib:
reduce cycles in esm loader and load it in snapshot`) was backported to
**Node v24.15.0**, causing the identical `EBADF: bad file descriptor,
fstat` error on that version.
Works on v24.14.1, fails on v24.15.0.
## How did you fix it?
Widened the version gate to also cover Node 24.15+:
```js
export const HAS_BROKEN_FSTAT_FOR_ZIP_FDS = major > 25 || (major === 25 && minor >= 7) || (major === 24 && minor >= 15);
```
## Checklist
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.1 parent baebea1 commit 7b2a0c3
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
0 commit comments