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

[Truffle] Move Regexp#=== to regexp.rb. #2830

Merged
merged 1 commit into from Apr 13, 2015

Conversation

bjfish
Copy link
Contributor

@bjfish bjfish commented Apr 13, 2015

Is there a case where this is true?

@nirvdrum
Copy link
Contributor

It looks like Rubinius does a check on whether the object can coerce to a string and if not, returns false:

https://github.com/rubinius/rubinius/blob/v2.4.1/kernel/common/regexp.rb#L192-L198

@bjfish bjfish force-pushed the truffle_regexp_case_equals branch 2 times, most recently from 592d21f to bfb6430 Compare April 13, 2015 22:13
@bjfish bjfish force-pushed the truffle_regexp_case_equals branch from bfb6430 to ad97895 Compare April 13, 2015 22:32
@bjfish bjfish changed the title [Truffle] Add boolean specialization to Regexp#===. [Truffle] Move Regexp#=== to regexp.rb. Apr 13, 2015
nirvdrum added a commit that referenced this pull request Apr 13, 2015
[Truffle] Move Regexp#=== to regexp.rb.
@nirvdrum nirvdrum merged commit abed82b into jruby:master Apr 13, 2015
@chrisseaton chrisseaton modified the milestone: truffle-dev May 4, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
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.

None yet

4 participants