nickewing / line-reader

Asynchronous line-by-line file reader for node.js
MIT License
453 stars 75 forks source link

setImmediate is not defined error #19

Closed magicxiao closed 8 years ago

magicxiao commented 10 years ago

there is a bug for version 0.2.4. 0.2.3 is ok. stack: node_modules/line-reader/lib/line_reader.js:130 setImmediate(readNext); ReferenceError: setImmediate is not defined at newRead (node_modules/line-reader/lib/line_reader.js:130:11) at then.finalFn (node_modules/line-reader/lib/line_reader.js:162:7) at node_modules/line-reader/lib/line_reader.js:112:9 at node_modules/line-reader/lib/line_reader.js:56:13 at Object.wrapper as oncomplete

nickewing commented 8 years ago

NodeJS 0.10.0 introduces setImmediate. I've added the required node version to the package.json.