Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ public Object freeze(RubySymbol object) {
return object;
}

@Specialization(guards = { "!isRubyNilObject", "!isRubyBignum", "!isRubySymbol" })
@Specialization(guards = { "!isRubyNilClass", "!isRubyBignum", "!isRubySymbol" })
public Object freeze(RubyBasicObject object) {
if (writeFrozenNode == null) {
CompilerDirectives.transferToInterpreter();
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ public boolean isFrozen(RubySymbol object) {
return true;
}

@Specialization(guards = { "!isRubyNilObject", "!isRubyBignum", "!isRubySymbol" })
@Specialization(guards = { "!isRubyNilClass", "!isRubyBignum", "!isRubySymbol" })
public boolean isFrozen(RubyBasicObject object) {
if (readFrozenNode == null) {
CompilerDirectives.transferToInterpreter();

0 comments on commit 1d2698f

Please sign in to comment.