Throw RangeError
Merge pull request #1139 from monarchdodra/stdio

Errors vs Exception in stdio