Skip to content

Commit b27f44a

Browse files
fix super call
1 parent d011408 commit b27f44a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/legacy_wrappers/cursors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports.makeLegacyFindCursor = function (baseClass) {
2929
const argumentsArray = Array.from(arguments);
3030
const callback = argumentsArray.find(argument => typeof argument === 'function');
3131
callback != null && argumentsArray.pop();
32-
return maybeCallback(super.explain(...arguments), callback);
32+
return maybeCallback(super.explain(...argumentsArray), callback);
3333
}
3434

3535
close(options, callback) {
@@ -180,7 +180,7 @@ module.exports.makeLegacyAggregationCursor = function (baseClass) {
180180
const argumentsArray = Array.from(arguments);
181181
const callback = argumentsArray.find(argument => typeof argument === 'function');
182182
callback != null && argumentsArray.pop();
183-
return maybeCallback(super.explain(...arguments), callback);
183+
return maybeCallback(super.explain(...argumentsArray), callback);
184184
}
185185

186186
close(options, callback) {

0 commit comments

Comments
 (0)