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]; |