Index: test/filterNotifier.js |
diff --git a/test/filterNotifier.js b/test/filterNotifier.js |
index 44d644b09cfdbcb0f891aacc2c80d194207b351a..2694f83af2046d117d56262138492071e5e2dd1a 100644 |
--- a/test/filterNotifier.js |
+++ b/test/filterNotifier.js |
@@ -17,7 +17,7 @@ |
"use strict"; |
-let {createSandbox} = require("./_common"); |
+const {createSandbox} = require("./_common"); |
let FilterNotifier = null; |
@@ -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]; |