Skip to content

[canary-base] test: update for new V8 serialization format#63475

Open
joyeecheung wants to merge 1 commit into
nodejs:canary-basefrom
joyeecheung:fix-serdes
Open

[canary-base] test: update for new V8 serialization format#63475
joyeecheung wants to merge 1 commit into
nodejs:canary-basefrom
joyeecheung:fix-serdes

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

@joyeecheung joyeecheung commented May 21, 2026

V8 bumped its wire-format version from 0x0f to 0x10. Update the expected hex in test-v8-serdes, and derive the v8 header bytes dynamically in test-runner-v8-deserializer so it tracks future bumps automatically.

Fixes: nodejs/node-v8#311

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels May 21, 2026
`;

const desStr = 'ff0f6f2203666f6f5e007b01';
const desStr = 'ff106f2203666f6f5e007b01';
Copy link
Copy Markdown
Member Author

@joyeecheung joyeecheung May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured it might be worth it to keep this one as a semver-major signal, as the message above indicates. But on a side note this might be worth to fold into nodejs/TSC#1852 as well..

V8 bumped its wire-format version from 0x0f to 0x10. Update the
expected hex in test-v8-serdes, and derive the v8 header bytes
dynamically in test-runner-v8-deserializer so it tracks future
bumps automatically.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jasnell
Copy link
Copy Markdown
Member

jasnell commented May 22, 2026

Just a side note... these version bumps can be a bit problematic for folks who use the serialization api to store persistently to disk. In Workers we have a patch to allow the version to be set explicitly for both deserialization and serialization. We haven't yet tried to upstream them but we certainly could.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants