Skip to content

Commit 3ee6f99

Browse files
Fix argument handling in async while function
Signed-off-by: Suyash Pathak <[email protected]>
1 parent 0878f6b commit 3ee6f99

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/utils/async/while/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/utils/async/while/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ function whileAsync( predicate, fcn, done, thisArg ) {
112112

113113
// Cache the most recent results...
114114
if ( arguments.length > 1 ) {
115-
args = [];
116-
for ( i = 1; i < arguments.length; i++ ) {
115+
args = [];
116+
for ( i = 1; i < arguments.length; i++ ) {
117117
args.push( arguments[ i ] );
118118
}
119119
}

0 commit comments

Comments
 (0)