Make serialize and unicode11 compatible with node

Fixes #3410
Fixes #3411
This commit is contained in:
Daniel Imms
2021-08-17 05:48:52 -07:00
parent 7c0a28eb59
commit 7a2621f6ab
5 changed files with 6 additions and 11 deletions
@@ -7,6 +7,7 @@
import { Terminal, ITerminalAddon, IBuffer, IBufferCell } from 'xterm';
function constrain(value: number, low: number, high: number): number {
return Math.max(low, Math.min(value, high));
}