Commit f0bf6bb0 authored by Alex Kocharin's avatar Alex Kocharin Committed by Ben Noordhuis
Browse files

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: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent 8bc8bd4b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment