| Index: lib/filterClasses.js |
| =================================================================== |
| --- a/lib/filterClasses.js |
| +++ b/lib/filterClasses.js |
| @@ -63,17 +63,17 @@ Filter.prototype = |
| return this.text; |
| } |
| }; |
| /** |
| * Cache for known filters, maps string representation to filter objects. |
| * @type Object |
| */ |
| -Filter.knownFilters = {__proto__: null}; |
| +Filter.knownFilters = Object.create(null); |
| /** |
| * Regular expression that element hiding filters should match |
| * @type RegExp |
| */ |
| Filter.elemhideRegExp = /^([^\/\*\|\@"!]*?)#(\@)?(?:([\w\-]+|\*)((?:\([\w\-]+(?:[$^*]?=[^\(\)"]*)?\))*)|#([^{}]+))$/; |
| /** |
| * Regular expression that RegExp filters specified as RegExps should match |
| @@ -361,17 +361,17 @@ ActiveFilter.prototype = |
| } |
| else |
| { |
| include = true; |
| hasIncludes = true; |
| } |
| if (!domains) |
| - domains = {__proto__: null}; |
| + domains = Object.create(null); |
| domains[domain] = include; |
| } |
| domains[""] = !hasIncludes; |
| } |
| this.domainSource = null; |
| } |