diff --git a/lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.ndarray.js b/lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.ndarray.js index 5fe25d5d4bcf..948c9a34e63e 100644 --- a/lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/math/strided/special/ahavercos-by/test/test.ndarray.js @@ -73,7 +73,8 @@ tape( 'the function computes the inverse half-value versed cosine via a callback ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = [];// sparse array + x.length = 5; y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -81,7 +82,8 @@ tape( 'the function computes the inverse half-value versed cosine via a callback ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; // sparse array + x.length = 5; x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; diff --git a/lib/node_modules/@stdlib/utils/async/for-each-right/examples/index.js b/lib/node_modules/@stdlib/utils/async/for-each-right/examples/index.js index f7c6af918f09..f2c8b3c8ae14 100644 --- a/lib/node_modules/@stdlib/utils/async/for-each-right/examples/index.js +++ b/lib/node_modules/@stdlib/utils/async/for-each-right/examples/index.js @@ -42,7 +42,7 @@ function read( file, next ) { function onFile( error ) { if ( error ) { - error = new Error( 'unable to read file: '+file ); + error = new Error( 'unable to read file:%s ', file ); return next( error ); } console.log( 'Successfully read file: %s', file );