Skip to content

Commit 7aec76a

Browse files
committed
refactor: ensure contiguous array allocation
Ref: 7d17660 --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e882812 commit 7aec76a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/utils/async/do-while/lib

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ function doWhileAsync( fcn, predicate, done, thisArg ) {
9191

9292
// Cache the most recent results...
9393
if ( arguments.length > 1 ) {
94-
args = new Array( arguments.length-1 ); // eslint-disable-line stdlib/no-new-array
94+
args = [];
9595
for ( i = 1; i < arguments.length; i++ ) {
96-
args[ i-1 ] = arguments[ i ];
96+
args.push( arguments[ i ] );
9797
}
9898
}
9999
// Run the test condition:

0 commit comments

Comments
 (0)