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

Side by Side Diff: lib/debug.js

Issue 5288886037118976: Adblock Plus Crawler rewrite (Closed)
Patch Set: Addressed comments Created May 7, 2015, 12:04 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
« lib/crawler.js ('K') | « lib/crawler.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
(Empty)
1 /*
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
4 * http://mozilla.org/MPL/2.0/.
5 */
6
7 /**
8 * @module debug
9 */
10
11 /**
12 * Reports an exception both to Browser Console and stdout.
13 *
14 * @param {Exception|Error} e
15 */
16 exports.reportException = function(e)
17 {
18 let stack = "";
19 if (e && typeof e == "object" && "stack" in e)
20 stack = e.stack + "\n";
21
22 Cu.reportError(e);
23 dump(e + "\n" + stack + "\n");
Sebastian Noack 2015/05/07 00:46:45 Note that the trailing newline will be duplicated.
24 }
OLDNEW
« lib/crawler.js ('K') | « lib/crawler.js ('k') | lib/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld