readline: fix calling constructor without new
Previously, we detected options object based on amount of arguments supplied. But if we're calling readline without new operator, constructor gets re-called and will always have 4 arguments. PR-URL: https://github.com/iojs/io.js/pull/1385 Reviewed-By:Ben Noordhuis <info@bnoordhuis.nl>
parent
8bc8bd4b
Please register or sign in to comment