File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments