Add small fix over
MODIFY
mrbgems/mruby-io/mrblib/io.rb
mrbgems/mruby-io/mrblib/io.rb
@@ -140,8 +140,8 @@ class IO
def eof?
_check_readable
begin
- buf = _read_buf
- return buf.empty?
+ _read_buf
+ return @buf.empty?
rescue EOFError
return true
end
@@ -177,7 +177,6 @@ class IO
rescue EOFError => e
raise e if @buf.empty?
end
- @buf
end
def ungetc(substr)

Add small fix over #4712