Skip to content

Conversation

thromer
Copy link
Contributor

@thromer thromer commented Sep 9, 2025

Description

Before this change evaluate(..., return_by_value=True) would
incorrectly return None for any falsy result.

Also cleanup the return_by_value=False case, by removing an
unnecessary check for remote_object.deep_serialized_value. See the
linked issue for the rationale.

Fixes #201.

Pre-merge Checklist

  • I have described my change in the section above.
  • I have ran the ./scripts/format.sh and ./scripts/lint.sh scripts. My code is properly formatted and has no linting errors.
  • I have ran uv run pytest and ensured all tests pass.
  • I have added my change to CHANGELOG.md under the [Unreleased] section.

Before this change evaluate(..., return_by_value=True) would
incorrectly return None for any falsy result.

Also cleanup the return_by_value=False case, by removing an
unnecessary check for remote_object.deep_serialized_value. See the
linked issue for the rationale.

Fixes cdpdriver#201.
@thromer thromer requested a review from a team as a code owner September 9, 2025 02:23
Copy link

codecov bot commented Sep 9, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
zendriver/core/tab.py 83.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Member

@stephanlensky stephanlensky left a comment

Choose a reason for hiding this comment

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

Looks good, thank you! I'll merge and release this tomorrow.

@stephanlensky stephanlensky merged commit c6260fc into cdpdriver:main Sep 10, 2025
5 checks passed
@thromer thromer deleted the 201 branch September 10, 2025 01:17
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.

tab.evaluate incorrectly returns RemoteObject when remote_object.value is falsy
2 participants