Skip to content

Allocate method on NilClass should raise TypeError#5317

Merged
enebo merged 1 commit intojruby:masterfrom
nomadium:nilclass-allocate-should-raise-typeerror
Sep 19, 2018
Merged

Allocate method on NilClass should raise TypeError#5317
enebo merged 1 commit intojruby:masterfrom
nomadium:nilclass-allocate-should-raise-typeerror

Conversation

@nomadium
Copy link
Contributor

I noticed an small difference between MRI and JRuby specs. According to them, to try to allocate space for a new instance of NilClass should raise a TypeError instead of returning nil.

@enebo enebo added this to the JRuby 9.2.1.0 milestone Sep 19, 2018
@enebo enebo merged commit 7ea2895 into jruby:master Sep 19, 2018
@enebo
Copy link
Member

enebo commented Sep 19, 2018

OPTIMISM at it's best...so sure of this one I did not let travis complete...thanks for the PR!

@nomadium nomadium deleted the nilclass-allocate-should-raise-typeerror branch September 19, 2018 22:15
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