Skip to content

Commit d0fb6e0

Browse files
committed
Fix index
1 parent c1e359d commit d0fb6e0

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/assert/is-positive-number-array/benchmark

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/assert/is-positive-number-array/benchmark/benchmark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function createBenchmark( fcn, len, primitives ) {
4949
b.tic();
5050
for ( i = 0; i < b.iterations; i++ ) {
5151
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
52-
x[ x.length ] = -i * 3.14;
52+
x[ len-1 ] = -i * 3.14;
5353
bool = fcn( x );
5454
if ( !isBoolean( bool ) ) {
5555
b.fail( 'should return a boolean' );

0 commit comments

Comments
 (0)