function next() {
			var j;
			i += 1;
			if ( i < len ) {
				// Forward the next line to the REPL readline interface in order to mimic user input...
				if ( out[ i ] ) {
					lines.push( out[ i ] );

					// If line is part of a multi-line input, wait for the next line...
					if ( repl._multilineHandler.isMultilineInput( lines.join( '\n' ) ) ) {
						return next();
					}
					for ( j = 0; j < lines.length; j++ ) {
						repl._rli.write( lines[ j ] );
						repl._rli.write( '\n', {
							'name': 'return'
						});
					}
					lines = [];
					repl.once( 'drain', next );
				} else {
					nextTick( next );
				}
			}
		}
Callback invoked after draining the command queue.

@private
@param {string} cmd - command
@param {boolean} success - boolean indicating whether the command successfully executed
@returns {void}