Skip to content

docs(javascript): V8 16.0 has the fix for the steps it loses; with it a step_over off a finally stops at the return first (#1173) - #1210

Merged
debugmcpdev merged 2 commits into
fix/js-server-stepperfrom
docs/1173-v8-fix-landed
Nov 21, 2026
Merged

debugmcpdev merged 2 commits into
fix/js-server-stepperfrom
docs/1173-v8-fix-landed

Conversation

@debugmcpdev

@debugmcpdev debugmcpdev commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #1209 (base fix/js-server-stepper); GitHub retargets it to main when #1209 merges.

Why

V8's fix for the lost step out of a return inside try … finally landed in V8 16.0 (https://chromium.googlesource.com/v8/v8/+/cba4bd578084d5ae151ef5380b6fc199bb02428f, crrev.com/c/8823312; #1173). No Node release has it yet. On a runtime with it, two of the stepper's tests at #1209's head fail: they accepted "lost" or "lands in the caller", and the fixed V8 does neither on the first step.

What changes

  • A step_over off the end of a finally block, on a fixed runtime, is a named outcome. V8 first stops once more at the end of the return, in the same call, with its return value (as it stops at any return); only the step after it reaches the caller. Both tests (sync withFinally, async closing) now accept that stop when the frame beneath it is the call the test paused in, so it cannot pass for the known stop in a later call of the function, and then require the next step to land in the caller. Runtimes without the fix are tested exactly as before.
  • Docs: docs/javascript/README.md and docs/KNOWN_ISSUES.md say the fix is in V8 16.0 and that no Node release has it yet, in place of "a fix in review", and describe the extra stop at the return. The test file's header and comments say the same.
  • Changelog: changelog.d/1173.changed.md.

Testing

tests/adapters/javascript/integration/javascript-step-skipped-code.test.ts, Linux (WSL Ubuntu 24.04):

Runtime at #1209's head (f3fd50c) with this change
Node 24.14.1 (stock) 24/24 24/24
Node 24.14.1 with the V8 change applied to deps/v8 22/24 24/24

The two failures at f3fd50c were exactly these tests, each stopping at the end of the return (steps.cjs:53:20, async-steps.cjs:31:26) with the return value shown.

Also: node scripts/check-docs.mjs (no inconsistencies) and npm run typecheck:all (0 errors, baseline unchanged), on this branch. The pre-push hook's full run (9482 unit, 243 integration passed) ran in a Windows checkout at #1209's head, so it did not include this change; the edited test has run only on Linux, as in the table. CI (ci.yml) runs only for PRs into main, so it runs here once #1209 merges and this PR is retargeted.

🤖 Generated with Claude Code

cynarlab and others added 2 commits November 20, 2026 13:43
… a step_over off a finally stops at the return first (#1173)

V8 landed the fix for the lost step out of a return inside try...finally
(crrev.com/c/8823312, V8 commit cba4bd578084, in V8 16.0). No Node release
has it yet. The JavaScript guide and KNOWN_ISSUES say so in place of "a fix
in review".

On a runtime with the fix (Node 24.14.1 with the V8 change applied to
deps/v8) two of the stepper's tests failed: a step_over off the end of a
finally block, sync and async, first stops once more at the end of the
return, in the same call, with its return value, and only the step after
that reaches the caller. Both tests now name that stop, pinned by the frame
beneath it so it cannot pass for the stop in a later call of the function,
and require the next step to land in the caller. Stock Node 24.14.1: 24 of
24; with the fix: 24 of 24 (22 of 24 before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@debugmcpdev
debugmcpdev merged commit 541ad96 into fix/js-server-stepper Nov 21, 2026
1 check passed
@debugmcpdev
debugmcpdev deleted the docs/1173-v8-fix-landed branch November 21, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants