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

Unified Diff: test/filterNotifier.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Addressed Sebastian's initial feedback Created Feb. 21, 2017, 6: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
Index: test/filterNotifier.js
diff --git a/test/filterNotifier.js b/test/filterNotifier.js
index 44d644b09cfdbcb0f891aacc2c80d194207b351a..da1496594eafcb8ed1d956267b033d7155c0572b 100644
--- a/test/filterNotifier.js
+++ b/test/filterNotifier.js
@@ -91,9 +91,9 @@ exports.testAddingRemovingListeners = function(test)
exports.testRemovingListenersWhileBeingCalled = function(test)
{
- let listener1 = function()
+ let listener1 = function(...args)
{
- listeners[0].apply(this, arguments);
+ listeners[0](...args);
FilterNotifier.removeListener(listener1);
};
let listener2 = listeners[1];
« test/_common.js ('K') | « test/filterListener.js ('k') | test/filterStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld