Commit 2ffb5f9
authored
test(debugger): detect bracketed
The template integration test compared its output against a hardcoded
`util.inspect` string and version-gated the bracketed `[byteLength]` form
on `>=24.11.1`. The same change was later backported to Node.js v22.22.1,
which broke `node-active` on master once GitHub Actions started serving
v22.22.x to that job (PR CI happened to land on v22.22.0 and stayed
green).
Probe the current `util.inspect` output for `[byteLength]` instead, so
the assertion tracks Node's actual behavior on whatever patch the runner
picks up. This avoids having to enumerate every release line that
backports the change.
Refs: nodejs/node#60131
Refs: #8140byteLength at runtime (#8172)1 parent abf7139 commit 2ffb5f9
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments