From ad69f9c86b950cc84ca103e65824b9c9129d3999 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 31 Jan 2022 18:06:13 +0100 Subject: add support for testing with other browsers (especially Abrowser and Librewolf) There are still some spurious failures when running under those newer browsers. Those will be systematically investigated and fixed. --- common/patterns_query_tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/patterns_query_tree.js') diff --git a/common/patterns_query_tree.js b/common/patterns_query_tree.js index ec1d989..ea3607e 100644 --- a/common/patterns_query_tree.js +++ b/common/patterns_query_tree.js @@ -68,7 +68,7 @@ function is_empty_node(tree_node) { return false; } - if (Array.reduce(tree_node.wildcard_matches, (a, b) => b && a !== null, 1)) + if (tree_node.wildcard_matches.reduce((a, b) => b && a !== null, 1)) return false; return tree_node.literal_match === null; -- cgit v1.2.3