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: Stop using commonjs, fix other problems Created Feb. 21, 2017, 5:12 a.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
« no previous file with comments | « test/stub-modules/io.js ('k') | test/stub-modules/utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « test/stub-modules/io.js ('k') | test/stub-modules/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld