Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/filterListener.js

Issue 29551648: Issue 5735 - Use JS Map instead of Object for matcher properties filterByKeyword and keywordByFilter (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git
Patch Set: use objects as keys Created Sept. 25, 2017, 1:44 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/matcher.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterListener.js
diff --git a/test/filterListener.js b/test/filterListener.js
index 75b416e18bde2f91e6dabe5a05874f73ffab96eb..a0360b6f87c915c3ff6aa3e62b2dde53219f4e5a 100644
--- a/test/filterListener.js
+++ b/test/filterListener.js
@@ -64,9 +64,8 @@ function checkKnownFilters(test, text, expected)
{
let matcher = defaultMatcher[type];
let filters = [];
- for (let keyword in matcher.filterByKeyword)
+ for (let [keyword, list] of matcher.filterByKeyword)
{
- let list = matcher.filterByKeyword[keyword];
for (let i = 0; i < list.length; i++)
{
let filter = list[i];
« no previous file with comments | « lib/matcher.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld