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