Skip to content

restore $! on date comparisons#6392

Merged
headius merged 1 commit intojruby:masterfrom
ahorek:date_cmp_fix
Sep 14, 2020
Merged

restore $! on date comparisons#6392
headius merged 1 commit intojruby:masterfrom
ahorek:date_cmp_fix

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Sep 13, 2020

fixes #6386

@headius
Copy link
Member

headius commented Sep 14, 2020

Fix is correct. Test could probably be made a spec, since CRuby likely also covers up the failed coercion, but I'll merge the fix now.

@headius headius added this to the JRuby 9.3.0.0 milestone Sep 14, 2020
@headius headius merged commit 0673a65 into jruby:master Sep 14, 2020
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.

Comparing Date object with nil sets global $! variable to NoMethodError

2 participants