Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: provide more actionable error messages when serializing values #35297

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

agg23
Copy link
Contributor

@agg23 agg23 commented Mar 20, 2025

Serialization failures (primarily when attempting to serialize functions) provide a vague error message that is not helpful. Provide a more actionable message.

@agg23 agg23 requested a review from pavelfeldman March 20, 2025 13:31
@agg23 agg23 force-pushed the function-serialize-error-message branch from 92307f0 to 8be57a2 Compare March 20, 2025 14:19

This comment has been minimized.

Copy link
Contributor

Test results for "tests 1"

5 flaky ⚠️ [firefox-page] › tests/page/page-evaluate.spec.ts:403:3 › should throw for too deep reference chain @firefox-ubuntu-22.04-node18
⚠️ [chromium-library] › tests/library/inspector/cli-codegen-java.spec.ts:118:5 › should print the correct imports in junit @ubuntu-22.04-chromium-tip-of-tree
⚠️ [webkit-library] › tests/library/browsercontext-viewport-mobile.spec.ts:206:5 › mobile viewport › view scale should reset after navigation @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-screenshot.spec.ts:345:5 › page screenshot › should work while navigating @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-screenshot.spec.ts:433:5 › page screenshot › should take fullPage screenshots during navigation @webkit-ubuntu-22.04-node18

38807 passed, 808 skipped
✔️✔️✔️

Merge workflow run.

Copy link
Member

@pavelfeldman pavelfeldman left a comment

Choose a reason for hiding this comment

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

So many allocations!

function accessChainToDisplayString(accessChain: Array<string | number>): string {
const chainString = accessChain.map((accessor, i) => {
if (typeof accessor === 'string')
return i ? `.${accessor}` : accessor;
Copy link
Member

Choose a reason for hiding this comment

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

This will have spaces (fyi)

@agg23 agg23 merged commit 714d5d1 into microsoft:main Mar 25, 2025
29 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.

2 participants