Skip to content

Cleanup getObject logic for handling offsets and counts #1936

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

Merged
merged 10 commits into from
Feb 7, 2023

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Feb 3, 2023

Cleanup getObject code for lists and maps

  • Simplify logic for computing the number of elements in the requested span [offset, offset + count)
  • Make the code work for offset 0 and null count.
  • Add tests.

Towards: dart-lang/sdk#49728

@annagrin annagrin changed the title Annagrin/fix offsets Cleanup getObject logic for handling offsets and counts Feb 3, 2023
@annagrin annagrin requested a review from elliette February 3, 2023 01:04
@annagrin annagrin mentioned this pull request Feb 7, 2023
@annagrin annagrin requested a review from elliette February 7, 2023 19:10
Copy link
Contributor

@elliette elliette left a comment

Choose a reason for hiding this comment

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

LGTM with a request for one more test case, thanks!

@annagrin annagrin merged commit 2cad786 into dart-lang:master Feb 7, 2023
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