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

Unified Diff: test/stub-modules/prefs.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Rebased. Created Feb. 28, 2017, 3:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/stub-modules/prefs.js
diff --git a/test/stub-modules/prefs.js b/test/stub-modules/prefs.js
index e9f54573b45e4629c7a39e009bb18cf465ab12a5..2925a1385d4a4bc87b64a299ad363f8f30315286 100644
--- a/test/stub-modules/prefs.js
+++ b/test/stub-modules/prefs.js
@@ -1,3 +1,5 @@
+"use strict";
+
let listeners = [];
let Prefs = exports.Prefs = {
@@ -15,8 +17,11 @@ for (let key of Object.keys(Prefs))
{
let value = Prefs[key];
Object.defineProperty(Prefs, key, {
- get: () => value,
- set: newValue =>
+ get()
+ {
+ return value;
+ },
+ set(newValue)
{
if (newValue == value)
return;

Powered by Google App Engine
This is Rietveld