LEFT | RIGHT |
| 1 "use strict"; |
| 2 |
1 "Compiled from https://hg.adblockplus.org/adblockplus/ with Emscripten {{{EMSCRI
PTEN_VERSION}}}"; | 3 "Compiled from https://hg.adblockplus.org/adblockplus/ with Emscripten {{{EMSCRI
PTEN_VERSION}}}"; |
2 | 4 |
3 var FilterNotifier = require("filterNotifier").FilterNotifier; | 5 var FilterNotifier = require("filterNotifier").FilterNotifier; |
4 | 6 |
5 var regexps = | 7 var regexps = |
6 { | 8 { |
7 _data: Object.create(null), | 9 _data: Object.create(null), |
8 _counter: 0, | 10 _counter: 0, |
9 | 11 |
10 create: function(source, matchCase) | 12 create: function(source, matchCase) |
11 { | 13 { |
12 var id = ++this._counter; | 14 var id = ++this._counter; |
13 try | 15 try |
14 { | 16 { |
15 this._data[id] = new RegExp(getStringData(source), matchCase ? "" : "i"); | 17 this._data[id] = new RegExp(readString(source), matchCase ? "" : "i"); |
16 return id; | 18 return id; |
17 } | 19 } |
18 catch (e) | 20 catch (e) |
19 { | 21 { |
20 return -1; | 22 return -1; |
21 } | 23 } |
22 }, | 24 }, |
23 | 25 |
24 delete: function(id) | 26 delete: function(id) |
25 { | 27 { |
26 delete this._data[id]; | 28 delete this._data[id]; |
27 }, | 29 }, |
28 | 30 |
29 test: function(id, str) | 31 test: function(id, str) |
30 { | 32 { |
31 return this._data[id].test(getStringData(str)); | 33 return this._data[id].test(readString(str)); |
32 } | 34 } |
33 }; | 35 }; |
34 | 36 |
35 var Module = | 37 var Module = |
36 { | 38 { |
37 preRun: [], | 39 preRun: [], |
38 postRun: [], | 40 postRun: [], |
39 print: console.log.bind(console), | 41 print: console.log.bind(console), |
40 printErr: console.error.bind(console), | 42 printErr: console.error.bind(console), |
41 | 43 |
(...skipping 10 matching lines...) Expand all Loading... |
52 'total_memory': TOTAL_MEMORY | 54 'total_memory': TOTAL_MEMORY |
53 }; | 55 }; |
54 } | 56 } |
55 }; | 57 }; |
56 var ENVIRONMENT_IS_WEB = false, ENVIRONMENT_IS_NODE = false, | 58 var ENVIRONMENT_IS_WEB = false, ENVIRONMENT_IS_NODE = false, |
57 ENVIRONMENT_IS_WORKER = false, ENVIRONMENT_IS_SHELL = true; | 59 ENVIRONMENT_IS_WORKER = false, ENVIRONMENT_IS_SHELL = true; |
58 | 60 |
59 {{BODY}} | 61 {{BODY}} |
60 | 62 |
61 Object.assign(exports, Module); | 63 Object.assign(exports, Module); |
LEFT | RIGHT |