We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e19ca8b commit a0b1aa1Copy full SHA for a0b1aa1
lib/readline.js
@@ -371,9 +371,8 @@ Interface.prototype._normalWrite = function(b) {
371
// either '' or (conceivably) the unfinished portion of the next line
372
string = lines.pop();
373
this._line_buffer = string;
374
- lines.forEach(function(line) {
375
- this._onLine(line);
376
- }, this);
+ for (var n = 0; n < lines.length; n++)
+ this._onLine(lines[n]);
377
} else if (string) {
378
// no newlines this time, save what we have for next time
379
0 commit comments