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

Delta Between Two Patch Sets: test/stub-modules/utils.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Left Patch Set: Created Feb. 20, 2017, 10:02 a.m.
Right Patch Set: Removed unused imports Created March 15, 2017, 3:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « test/stub-modules/prefs.js ('k') | test/subscriptionClasses.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* globals Buffer */
2
3 "use strict"; 1 "use strict";
4 2
5 let crypto = require("crypto"); 3 const crypto = require("crypto");
6 4
7 exports.Utils = { 5 exports.Utils = {
8 generateChecksum(lines) 6 generateChecksum(lines)
9 { 7 {
10 let buffer = new Buffer(lines.join("\n"), "utf-8"); 8 let buffer = new Buffer(lines.join("\n"), "utf-8");
11 let hash = crypto.createHash("md5"); 9 let hash = crypto.createHash("md5");
12 hash.update(buffer); 10 hash.update(buffer);
13 return hash.digest("base64").replace(/=+$/, ""); 11 return hash.digest("base64").replace(/=+$/, "");
14 }, 12 },
15 yield() {} 13 yield() {}
16 }; 14 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld