Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/compat.js

Issue 29523555: Issue 5552 - use strict mode for all JS in libadblocklus (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: move setting of V8 flags at the very beginning Created Aug. 22, 2017, 10:51 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 require.scopes = {__proto__: null}; 28 require.scopes = {__proto__: null};
29 29
30 function importAll(module, globalObj) 30 function importAll(module, globalObj)
31 { 31 {
32 var exports = require(module); 32 var exports = require(module);
33 for (var key in exports) 33 for (var key in exports)
34 globalObj[key] = exports[key]; 34 globalObj[key] = exports[key];
35 } 35 }
36 36
37 onShutdown = { 37 const onShutdown = {
38 done: false, 38 done: false,
39 add: function() {}, 39 add: function() {},
40 remove: function() {} 40 remove: function() {}
41 }; 41 };
42 42
43 // 43 //
44 // XPCOM emulation 44 // XPCOM emulation
45 // 45 //
46 46
47 const Components = 47 const Components =
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 var kValue = o[k]; 434 var kValue = o[k];
435 if (predicate.call(thisArg, kValue, k, o)) { 435 if (predicate.call(thisArg, kValue, k, o)) {
436 return kValue; 436 return kValue;
437 } 437 }
438 // e. Increase k by 1. 438 // e. Increase k by 1.
439 k++; 439 k++;
440 } 440 }
441 } 441 }
442 }); 442 });
443 } 443 }
OLDNEW
« no previous file with comments | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld