Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -768,9 +768,7 @@ public EmptyNode(EmptyNode prev) {

@Specialization
public boolean empty(RubyString string) {
notDesignedForCompilation();

return string.toString().isEmpty();
return string.getBytes().length() == 0;
}
}

0 comments on commit d0cc57c

Please sign in to comment.