diff --git a/src/xterm.js b/src/xterm.js index b27406830f..314a76d0eb 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -1715,7 +1715,7 @@ 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)) { + if (isNaN(x) || isNaN(y)) { return; }