Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -664,17 +664,17 @@ |
// several times on Safari, due to WebKit bug 132872 |
let prop = Object.getOwnPropertyDescriptor(this, "regexp"); |
if (prop) |
return prop.value; |
let source = Filter.toRegExp(this.regexpSource); |
let regexp = new RegExp(source, this.matchCase ? "" : "i"); |
Object.defineProperty(this, "regexp", {value: regexp}); |
- delete this.regexpSource; |
+ this.regexpSource = null; |
return regexp; |
}, |
/** |
* Content types the filter applies to, combination of values from |
* RegExpFilter.typeMap |
* @type {number} |
*/ |
contentType: 0x7FFFFFFF, |