From acbb69e5ad954fe2bdd0a8eba636aa9ff2200f3f Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 7 Jan 2018 18:59:31 +0300 Subject: [PATCH] expr may be null --- vendor-overwrites/csslint/parserlib.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor-overwrites/csslint/parserlib.js b/vendor-overwrites/csslint/parserlib.js index 4ecee1b9..cc6fe2c1 100644 --- a/vendor-overwrites/csslint/parserlib.js +++ b/vendor-overwrites/csslint/parserlib.js @@ -4866,7 +4866,7 @@ self.parserlib = (() => { const token = stream._token; token.expr = this._expr(inFunction); stream.mustMatch(Tokens.type(token.endChar)); - return finalize(token, token.value + token.expr.text + token.endChar); + return finalize(token, token.value + (token.expr || '') + token.endChar); } return finalize( @@ -4897,10 +4897,10 @@ self.parserlib = (() => { const start = stream._token; const name = start.value.slice(0, -1); - const expr = this._expr(lower(name)) || ''; + const expr = this._expr(lower(name)); const ieFilter = this.options.ieFilters && stream.peek() === Tokens.EQUALS ? this._functionIeFilter() : ''; - const text = name + '(' + expr + ieFilter + ')'; + const text = name + '(' + (expr || '') + ieFilter + ')'; stream.mustMatch(Tokens.RPAREN); this._ws();