Index: chrome/content/tests/filterClasses.js |
=================================================================== |
--- a/chrome/content/tests/filterClasses.js |
+++ b/chrome/content/tests/filterClasses.js |
@@ -62,17 +62,17 @@ |
} |
return result; |
} |
function addDefaults(expected) |
{ |
let type = null; |
let hasProperty = {}; |
- for each (let entry in expected) |
+ for (let entry of expected) |
{ |
if (/^type=(.*)/.test(entry)) |
type = RegExp.$1; |
else if (/^(\w+)/.test(entry)) |
hasProperty[RegExp.$1] = true; |
} |
function addProperty(prop, value) |
@@ -117,17 +117,17 @@ |
// Test round-trip |
let filter2; |
let buffer = []; |
filter.serialize(buffer); |
if (buffer.length) |
{ |
let map = {__proto__: null}; |
- for each (let line in buffer.slice(1)) |
+ for (let line of buffer.slice(1)) |
{ |
if (/(.*?)=(.*)/.test(line)) |
map[RegExp.$1] = RegExp.$2; |
} |
filter2 = Filter.fromObject(map); |
} |
else |
{ |