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

Side by Side Diff: lib/crawler.js

Issue 29355266: Noissue - Add "use strict" to the JavaScript files. (Closed)
Patch Set: Created Sept. 29, 2016, 11:56 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 | « lib/commandLine.js ('k') | lib/main.js » ('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 Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 "use strict";
8
7 /** 9 /**
8 * @module crawler 10 * @module crawler
9 */ 11 */
10 12
11 Cu.import("resource://gre/modules/Services.jsm"); 13 Cu.import("resource://gre/modules/Services.jsm");
12 Cu.import("resource://gre/modules/Task.jsm"); 14 Cu.import("resource://gre/modules/Task.jsm");
13 Cu.import("resource://gre/modules/Promise.jsm"); 15 Cu.import("resource://gre/modules/Promise.jsm");
14 16
15 function abprequire(module) 17 function abprequire(module)
16 { 18 {
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 396
395 function reportException(e) 397 function reportException(e)
396 { 398 {
397 let stack = ""; 399 let stack = "";
398 if (e && typeof e == "object" && "stack" in e) 400 if (e && typeof e == "object" && "stack" in e)
399 stack = e.stack + "\n"; 401 stack = e.stack + "\n";
400 402
401 Cu.reportError(e); 403 Cu.reportError(e);
402 dump(e + "\n" + stack + "\n"); 404 dump(e + "\n" + stack + "\n");
403 } 405 }
OLDNEW
« no previous file with comments | « lib/commandLine.js ('k') | lib/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld