diff --git a/src/xterm.js b/src/xterm.js index 560db5fefc..0a8c2a1c24 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1973,6 +1973,10 @@ Terminal.prototype.error = function() { * @param {number} y The number of rows to resize to. */ Terminal.prototype.resize = function(x, y) { + if (Number.isNaN(x) || Number.isNaN(y)) { + return; + } + var line , el , i