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

Side by Side Diff: test/stub-modules/utils.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Stop using commonjs, fix other problems Created Feb. 21, 2017, 5: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 | « test/stub-modules/prefs.js ('k') | test/subscriptionClasses.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 /* globals Buffer */
2
3 "use strict";
4
1 let crypto = require("crypto"); 5 let crypto = require("crypto");
2 6
3 exports.Utils = { 7 exports.Utils = {
4 generateChecksum: function(lines) 8 generateChecksum(lines)
5 { 9 {
6 let buffer = new Buffer(lines.join("\n"), "utf-8"); 10 let buffer = new Buffer(lines.join("\n"), "utf-8");
7 let hash = crypto.createHash("md5"); 11 let hash = crypto.createHash("md5");
8 hash.update(buffer); 12 hash.update(buffer);
9 return hash.digest("base64").replace(/=+$/, ""); 13 return hash.digest("base64").replace(/=+$/, "");
10 }, 14 },
11 yield: () => undefined 15 yield() {}
12 }; 16 };
OLDNEW
« no previous file with comments | « test/stub-modules/prefs.js ('k') | test/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld