typed array support for parser

This commit is contained in:
Jörg Breitbart
2018-11-23 23:30:37 +01:00
parent 79a1194bea
commit 06e89549a8
5 changed files with 236 additions and 186 deletions
+3 -1
View File
@@ -503,7 +503,9 @@ describe('InputHandler', () => {
it('should not cause an infinite loop (regression test)', () => {
const term = new Terminal();
const inputHandler = new InputHandler(term);
inputHandler.print(String.fromCharCode(0x200B), 0, 1);
const container = new Uint16Array(10);
container[0] = 0x200B;
inputHandler.print(container, 0, 1);
});
});