Skip to content

Commit 7dd352d

Browse files
committed
chore: fix JavaScript lint errors (issue #8213)
1 parent e9406ad commit 7dd352d

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

lib/node_modules/@stdlib/bench/harness/lib/log/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var TransformStream = require( '@stdlib/streams/node/transform' );
23+
var Transform = require( '@stdlib/streams/node/transform' );
2424
var fromCodePoint = require( '@stdlib/string/from-code-point' );
2525
var log = require( './log.js' );
2626

@@ -37,7 +37,7 @@ function createStream() {
3737
var stream;
3838
var line;
3939

40-
stream = new TransformStream({
40+
stream = new Transform({
4141
'transform': transform,
4242
'flush': flush
4343
});

lib/node_modules/@stdlib/stats/pcorrtest/benchmark/benchmark.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ bench( pkg, function benchmark( b ) {
4040
var i;
4141

4242
rho = 0.5;
43-
x = new Array( 300 );
44-
y = new Array( 300 );
43+
x = [];
44+
y = [];
4545
for ( i = 0; i < 300; i++ ) {
46-
x[ i ] = rnorm( 0.0, 1.0 );
47-
y[ i ] = ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) );
46+
x.push( rnorm( 0.0, 1.0 ) );
47+
y.push( ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) ) );
4848
}
4949

5050
b.tic();
@@ -74,11 +74,11 @@ bench( pkg+'::one-sided', function benchmark( b ) {
7474
var i;
7575

7676
rho = 0.5;
77-
x = new Array( 300 );
78-
y = new Array( 300 );
77+
x = [];
78+
y = [];
7979
for ( i = 0; i < 300; i++ ) {
80-
x[ i ] = rnorm( 0.0, 1.0 );
81-
y[ i ] = ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) );
80+
x.push( rnorm( 0.0, 1.0 ) );
81+
y.push( ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) ) );
8282
}
8383
opts = {
8484
'alternative': 'less'
@@ -111,11 +111,11 @@ bench( pkg+':rho=0.5', function benchmark( b ) {
111111
var i;
112112

113113
rho = 0.5;
114-
x = new Array( 300 );
115-
y = new Array( 300 );
114+
x = [];
115+
y = [];
116116
for ( i = 0; i < 300; i++ ) {
117-
x[ i ] = rnorm( 0.0, 1.0 );
118-
y[ i ] = ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) );
117+
x.push( rnorm( 0.0, 1.0 ) );
118+
y.push( ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) ) );
119119
}
120120
opts = {
121121
'rho': 0.5
@@ -148,11 +148,11 @@ bench( pkg+':print', function benchmark( b ) {
148148
var i;
149149

150150
rho = 0.5;
151-
x = new Array( 300 );
152-
y = new Array( 300 );
151+
x = [];
152+
y = [];
153153
for ( i = 0; i < 300; i++ ) {
154-
x[ i ] = rnorm( 0.0, 1.0 );
155-
y[ i ] = ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) );
154+
x.push( rnorm( 0.0, 1.0 ) );
155+
y.push( ( rho * x[ i ] ) + rnorm( 0.0, sqrt( 1.0 - (rho*rho) ) ) );
156156
}
157157
result = pcorrtest( x, y );
158158

0 commit comments

Comments
 (0)