File tostring respect closed.

This commit is contained in:
Enyby
2019-10-06 16:54:44 +03:00
parent 868928779f
commit c62ba1f22e

View File

@@ -133,7 +133,7 @@ public class JseIoLib extends IoLib {
this( null, null, o ); this( null, null, o );
} }
public String tojstring() { public String tojstring() {
return "file ("+this.hashCode()+")"; return "file (" + (this.closed ? "closed" : this.hashCode()) + ")";
} }
public boolean isstdfile() { public boolean isstdfile() {
return file == null; return file == null;