diff --git a/src/xterm.js b/src/xterm.js index 664d181..b274068 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1715,6 +1715,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