Skip to content

Handle warn(foo, uplevel: nil)#9007

Merged
headius merged 1 commit intojruby:masterfrom
Earlopain:warn-nil-uplevel
Sep 15, 2025
Merged

Handle warn(foo, uplevel: nil)#9007
headius merged 1 commit intojruby:masterfrom
Earlopain:warn-nil-uplevel

Conversation

@Earlopain
Copy link
Contributor

@Earlopain Earlopain commented Sep 14, 2025

Ruby simply ignores the nil uplevel (it is the default value), JRuby tries to convert it to an integer.

I wanted to write such code for a polyfill in ruby/prism#3647 but had to change it around to make work on jruby.

Ruby simply ignores the nil uplevel (it is the default value),
JRuby tries to convert it to an integer.
@headius headius added this to the JRuby 10.0.3.0 milestone Sep 15, 2025
@headius
Copy link
Member

headius commented Sep 15, 2025

Looks good! Thanks!

@headius headius merged commit d24cbe0 into jruby:master Sep 15, 2025
74 of 75 checks passed
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