diff --git a/lib/stream-reader.js b/lib/stream-reader.js
index <HASH>..<HASH> 100644
--- a/lib/stream-reader.js
+++ b/lib/stream-reader.js
@@ -14,7 +14,7 @@ export default class CodeMirrorStreamReader extends StreamReader {
 	 * @param  {CodeMirror.Pos}   [pos]
 	 * @param  {CodeMirror.Range} [limit]
 	 */
-	constructor(buffer, pos, limit) {
+	constructor(editor, pos, limit) {
 		super();
 		const CodeMirror = editor.constructor;
 		this.editor = editor;
Fixed param name in stream reader constructor