Repository navigation
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
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1209 (base
fix/js-server-stepper); GitHub retargets it tomainwhen #1209 merges.Why
V8's fix for the lost step out of a
returninsidetry … finallylanded 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
step_overoff the end of afinallyblock, on a fixed runtime, is a named outcome. V8 first stops once more at the end of thereturn, in the same call, with its return value (as it stops at anyreturn); only the step after it reaches the caller. Both tests (syncwithFinally, asyncclosing) 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/javascript/README.mdanddocs/KNOWN_ISSUES.mdsay 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 thereturn. The test file's header and comments say the same.changelog.d/1173.changed.md.Testing
tests/adapters/javascript/integration/javascript-step-skipped-code.test.ts, Linux (WSL Ubuntu 24.04):deps/v8The 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) andnpm 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 intomain, so it runs here once #1209 merges and this PR is retargeted.🤖 Generated with Claude Code