Skip to content

fix(evaluate): pass deeply nested arguments - #44490

Merged
Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:fix-44060
Dec 2, 2026
Merged

Dmitry Gozman (dgozman) merged 1 commit into
microsoft:mainfrom
dgozman:fix-44060

Conversation

@dgozman

Copy link
Copy Markdown
Collaborator

Summary

  • Serialized evaluate arguments travel in the function source and not as protocol values, because browsers limit the nesting of protocol values. This is the same in all browsers.
  • The utility script serializer encodes arrays, objects, maps and sets as tagged arrays (['o', key, value, ...]), so the serialized value is as deep as the original value.
  • Storage state files with IndexedDB values in the old encoding are converted on the server. An older version cannot read IndexedDB values from a file that this version writes.
  • A function inside an array is now undefined and not null, the same as a function in an object.

Fixes #44060

Serialized arguments now travel in the function source and not as
protocol values, because browsers limit the nesting of protocol values.

The utility script serializer encodes arrays, objects, maps and sets
as tagged arrays, so that the serialized value is as deep as the
original value. Storage state files in the old encoding are converted
on the server.

Fixes: microsoft#44060
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5278 passed, 644 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

23749 passed, 732 skipped


Merge workflow run.

@dgozman
Dmitry Gozman (dgozman) merged commit b79375c into microsoft:main Dec 2, 2026
25 of 30 checks passed
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.

[Bug]: page.evaluate in Chromium never settles when its argument nests 60 objects deep

2 participants