Make Terminal API properties readonly

Fixes #1867
This commit is contained in:
Daniel Imms
2018-12-31 20:09:48 -08:00
parent 4375b3cdb9
commit 338558d86c
7 changed files with 27 additions and 23 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ describe('Buffer', () => {
beforeEach(() => {
terminal = new MockTerminal();
terminal.cols = INIT_COLS;
terminal.rows = INIT_ROWS;
(terminal as any).cols = INIT_COLS;
(terminal as any).rows = INIT_ROWS;
terminal.options.scrollback = 1000;
buffer = new Buffer(terminal, true);
});