Repository navigation
node: withhold --enable-source-maps across the whole Node 26.x assert regression band #784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,4 +130,4 @@ Error: kaboom | |
|
|
||
| The stack frame reports `app.ts:2:8` — the line in your source, not the transpiled output. To turn it off, pass `--no-enable-source-maps`. | ||
|
|
||
| Source maps are injected on every supported Node version except the **26.2.x** patch band, where a Node regression makes a no-message `assert(false)` rethrow as a `TypeError` instead of an `AssertionError` when source maps are on. On 26.2.x Nub withholds the flag, so stack traces there are not remapped. Every other version (18.19 through 26.1, and 26.3+) gets source maps. | ||
| Source maps are injected on every supported Node version except **26.0 through 26.7**, where a Node regression ([nodejs/node#63169](https://github.com/nodejs/node/issues/63169)) makes a no-message `assert(false)` throw a `TypeError` instead of an `AssertionError` when source maps are on. Nub withholds the flag across that band, so stack traces are not remapped there. Every other version gets source maps: 18.19 through 25.x, and 26.8 onward, where the upstream fix ships. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "26.8 onward, where the upstream fix ships" states as settled fact something the code comment two files over hedges as a stopgap pending re-verification. The fix is on Node |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
26.8.0upper bound is unconfirmed upstream, and it fails in the unsafe direction.b5d37cd4merged to Nodemainon 2026-08-20, butv26.x-stagingwas at 2026-08-18 and nodejs/node#63215 carries no backport marker or milestone — so 26.8.0 is verifiably the earliest release that could carry the fix, not a confirmed one. If it ships without it, nub silently re-injects and the type corruption returns, with no test and no CI leg (CI pins Node 24) to notice.Technical details