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

Add length() and endOffset() to migrate to (startOffset, length) in a compatible way #932

Merged
merged 2 commits into from
May 31, 2023

Conversation

eregon
Copy link
Member

@eregon eregon commented May 31, 2023

For #872
By adding these methods, and TruffleRuby migrating to them, we can avoid breaking the Test Loader.java with TruffleRuby CI job.

eregon added 2 commits May 31, 2023 19:19
* To avoid a conflict with `length = endOffset - startOffset`.
@eregon eregon merged commit e388740 into ruby:main May 31, 2023
@eregon eregon deleted the length_method branch May 31, 2023 17:23
@eregon
Copy link
Member Author

eregon commented May 31, 2023

Corresponding TruffleRuby PR: oracle/truffleruby#3081

BTW in this case since it was easy to not break the job I did it, but I think it's totally fine to break it if we know how to fix it and there is no easy way to do it in a non-breaking manner (e.g., renaming a node class or a node field).

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.

1 participant