Fix infinite loop

See Microsoft/vscode#60291
This commit is contained in:
Daniel Imms
2018-10-09 08:38:08 -07:00
parent 8d16bb6ea2
commit ed5467689a
2 changed files with 11 additions and 2 deletions
+7
View File
@@ -469,4 +469,11 @@ describe('InputHandler', () => {
}
expect(s).equals('World ');
});
describe('print', () => {
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);
});
});
});