Closed fallenoak closed 6 years ago
Nice! 👍
Should it throw when opening a file when MPQ is closed?
@timkurvers Good catch.
We should probably add a branch for the this.handle
guard that throws if !this.handle
. In cases like MPQ.prototype.close
, I think it's okay to silently do nothing if it's already closed, but in cases like MPQ.prototype.openFile
, it really should throw.
Thoughts?
@fallenoak Agree! 👍
Closes #5