From ca2b016ee96b425653e0022b75f725700a2fd67d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 28 Apr 2023 07:59:50 -0400 Subject: [PATCH] Warn against missing argument in linter --- src/js/static-filtering-parser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index cf675a3d0..a813b9d34 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -3686,11 +3686,12 @@ class ExtSelectorCompiler { return { attr, value }; } - // When dealing with literal text, we must first eat _some_ - // backslash characters. // Remove potentially present quotes before processing. compileText(s) { - if ( s === '' ) { return; } + if ( s === '' ) { + this.error = 'argument missing'; + return; + } const r = this.unquoteString(s); if ( r.i !== s.length ) { return; } return r.s;