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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compat.js
diff --git a/lib/compat.js b/lib/compat.js
index 21439f3d353d904341f2b54ac7fe7f14190ac3bd..c2b09dd500f241a8dc1ace2c7bbae6259d15b42a 100644
--- a/lib/compat.js
+++ b/lib/compat.js
@@ -50,13 +50,16 @@ let onShutdown = {
// XPCOM emulation
//
+function nsIFileURL() {}
+function nsIHttpChannel() {}
+
let Components =
{
interfaces:
{
nsIFile: {DIRECTORY_TYPE: 0},
- nsIFileURL() {},
- nsIHttpChannel() {},
+ nsIFileURL,
+ nsIHttpChannel,
nsITimer: {TYPE_REPEATING_SLACK: 0},
nsIInterfaceRequestor: null,
nsIChannelEventSink: null
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld