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

Side by Side Diff: lib/compat.js

Issue 29372820: Issue 4795 - Avoid shorthand method syntax where prototype matters (Closed)
Patch Set: Addressed Sebastian's feedback Created Feb. 17, 2017, 8:12 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 | no next file » | 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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 let onShutdown = { 43 let onShutdown = {
44 done: false, 44 done: false,
45 add() {}, 45 add() {},
46 remove() {} 46 remove() {}
47 }; 47 };
48 48
49 // 49 //
50 // XPCOM emulation 50 // XPCOM emulation
51 // 51 //
52 52
53 function nsIFileURL() {}
54 function nsIHttpChannel() {}
55
53 let Components = 56 let Components =
54 { 57 {
55 interfaces: 58 interfaces:
56 { 59 {
57 nsIFile: {DIRECTORY_TYPE: 0}, 60 nsIFile: {DIRECTORY_TYPE: 0},
58 nsIFileURL() {}, 61 nsIFileURL,
59 nsIHttpChannel() {}, 62 nsIHttpChannel,
60 nsITimer: {TYPE_REPEATING_SLACK: 0}, 63 nsITimer: {TYPE_REPEATING_SLACK: 0},
61 nsIInterfaceRequestor: null, 64 nsIInterfaceRequestor: null,
62 nsIChannelEventSink: null 65 nsIChannelEventSink: null
63 }, 66 },
64 classes: 67 classes:
65 { 68 {
66 "@mozilla.org/timer;1": 69 "@mozilla.org/timer;1":
67 { 70 {
68 createInstance() { return new FakeTimer(); } 71 createInstance() { return new FakeTimer(); }
69 }, 72 },
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 status: -1, 260 status: -1,
258 notificationCallbacks: {}, 261 notificationCallbacks: {},
259 loadFlags: 0, 262 loadFlags: 0,
260 INHIBIT_CACHING: 0, 263 INHIBIT_CACHING: 0,
261 VALIDATE_ALWAYS: 0, 264 VALIDATE_ALWAYS: 0,
262 QueryInterface() 265 QueryInterface()
263 { 266 {
264 return this; 267 return this;
265 } 268 }
266 }; 269 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld