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: Rebased. Created Feb. 28, 2017, 3:55 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 let crypto = require("crypto"); 1 "use strict";
2 2
3 const crypto = require("crypto");
4
3 exports.Utils = { 5 exports.Utils = {
4 generateChecksum: function(lines) 6 generateChecksum(lines)
5 { 7 {
6 let buffer = new Buffer(lines.join("\n"), "utf-8"); 8 let buffer = new Buffer(lines.join("\n"), "utf-8");
7 let hash = crypto.createHash("md5"); 9 let hash = crypto.createHash("md5");
8 hash.update(buffer); 10 hash.update(buffer);
9 return hash.digest("base64").replace(/=+$/, ""); 11 return hash.digest("base64").replace(/=+$/, "");
10 }, 12 },
11 yield: () => undefined 13 yield() {}
12 }; 14 };
OLDNEW

Powered by Google App Engine
This is Rietveld