From 8bce313809325deae74d171bd45013c235346bd4 Mon Sep 17 00:00:00 2001 From: SuYaSh-PaThAk04 Date: Wed, 21 Jan 2026 16:42:52 +0530 Subject: [PATCH 1/6] chore: fix JavaScript lint errors (issue #9843) --- .../@stdlib/_tools/bib/citation-reference/lib/sync.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js index 1a699af75341..10ae6b8aa0ef 100644 --- a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js +++ b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js @@ -56,11 +56,12 @@ var debug = logger( 'to-reference:sync' ); * @throws {TypeError} first argument must be a string * @throws {TypeError} options argument must be an object * @throws {TypeError} must provide valid options +* @throws {Error} if the citation cannot be generated * @returns {string} reference * * @example * var ref = toReference( '@press1992' ); -* // returns '...' +* // throws */ function toReference( id, options ) { var outFile; From 822348cc9abb4c222142cfc33b6e0fba0e250f52 Mon Sep 17 00:00:00 2001 From: SuYaSh-PaThAk04 Date: Wed, 21 Jan 2026 16:49:43 +0530 Subject: [PATCH 2/6] fix: removed new array --- lib/node_modules/@stdlib/utils/values/lib/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/utils/values/lib/main.js b/lib/node_modules/@stdlib/utils/values/lib/main.js index 079068895502..a0333be8e365 100644 --- a/lib/node_modules/@stdlib/utils/values/lib/main.js +++ b/lib/node_modules/@stdlib/utils/values/lib/main.js @@ -53,7 +53,8 @@ function objectValues( obj ) { } keys = objectKeys( obj ); len = keys.length; - out = new Array( len ); + out = []; + out.length = len; for ( i = 0; i < len; i++ ) { out[ i ] = obj[ keys[i] ]; } From ffea18172998e61f62e7e5814c1904f56abd1bc1 Mon Sep 17 00:00:00 2001 From: SuYaSh-PaThAk04 Date: Thu, 22 Jan 2026 13:14:38 +0530 Subject: [PATCH 3/6] fixed benchmark --- .../ndarray/slice/benchmark/benchmark.js | 160 +++++++++--------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js b/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js index 3a5ccf49330f..6d830a82aac1 100644 --- a/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js @@ -71,11 +71,11 @@ bench( pkg+'::0d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [], { 'dtype': 'float64' } ), - empty( [], { 'dtype': 'float32' } ), - empty( [], { 'dtype': 'int32' } ), - empty( [], { 'dtype': 'complex128' } ), - empty( [], { 'dtype': 'generic' } ) + empty( [], { 'dtype': 'float64' }), + empty( [], { 'dtype': 'float32' }), + empty( [], { 'dtype': 'int32' }), + empty( [], { 'dtype': 'complex128' }), + empty( [], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -136,11 +136,11 @@ bench( pkg+'::1d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2 ], { 'dtype': 'float64' } ), - empty( [ 2 ], { 'dtype': 'float32' } ), - empty( [ 2 ], { 'dtype': 'int32' } ), - empty( [ 2 ], { 'dtype': 'complex128' } ), - empty( [ 2 ], { 'dtype': 'generic' } ) + empty( [ 2 ], { 'dtype': 'float64' }), + empty( [ 2 ], { 'dtype': 'float32' }), + empty( [ 2 ], { 'dtype': 'int32' }), + empty( [ 2 ], { 'dtype': 'complex128' }), + empty( [ 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -201,11 +201,11 @@ bench( pkg+'::1d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2 ], { 'dtype': 'float64' } ), - empty( [ 2 ], { 'dtype': 'float32' } ), - empty( [ 2 ], { 'dtype': 'int32' } ), - empty( [ 2 ], { 'dtype': 'complex128' } ), - empty( [ 2 ], { 'dtype': 'generic' } ) + empty( [ 2 ], { 'dtype': 'float64' }), + empty( [ 2 ], { 'dtype': 'float32' }), + empty( [ 2 ], { 'dtype': 'int32' }), + empty( [ 2 ], { 'dtype': 'complex128' }), + empty( [ 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -271,11 +271,11 @@ bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2 ], { 'dtype': 'float64' } ), - empty( [ 2 ], { 'dtype': 'float32' } ), - empty( [ 2 ], { 'dtype': 'int32' } ), - empty( [ 2 ], { 'dtype': 'complex128' } ), - empty( [ 2 ], { 'dtype': 'generic' } ) + empty( [ 2 ], { 'dtype': 'float64' }), + empty( [ 2 ], { 'dtype': 'float32' }), + empty( [ 2 ], { 'dtype': 'int32' }), + empty( [ 2 ], { 'dtype': 'complex128' }), + empty( [ 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -339,11 +339,11 @@ bench( pkg+'::2d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -404,11 +404,11 @@ bench( pkg+'::2d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -474,11 +474,11 @@ bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -542,11 +542,11 @@ bench( pkg+'::3d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -607,11 +607,11 @@ bench( pkg+'::3d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -677,11 +677,11 @@ bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -745,11 +745,11 @@ bench( pkg+'::4d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -810,11 +810,11 @@ bench( pkg+'::4d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -880,11 +880,11 @@ bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -948,11 +948,11 @@ bench( pkg+'::5d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -1013,11 +1013,11 @@ bench( pkg+'::5d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ @@ -1083,11 +1083,11 @@ bench( pkg+'::5d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } ) + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' }) ]; /* eslint-enable object-curly-newline */ From e25a59a79df72238e7ea9085598f22600858dfaa Mon Sep 17 00:00:00 2001 From: SuYaSh-PaThAk04 Date: Sat, 24 Jan 2026 13:06:40 +0530 Subject: [PATCH 4/6] chore: fix JavaScript lint errors (issue #9867) --- .../@stdlib/plot/components/svg/path/lib/render/utils/zip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js b/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js index 731735397afc..e0a7957f3833 100644 --- a/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js +++ b/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js @@ -40,9 +40,9 @@ function zip( x, y ) { if ( x.length !== y.length ) { throw new Error( format( 'invalid arguments. Must provide equal length array-like objects. x length: `%u`. y length: `%u`.', x.length, y.length ) ); } - out = new Array( x.length ); + out = []; for ( i = 0; i < x.length; i++ ) { - out[ i ] = [ x[i], y[i] ]; + out.push( [ x[i], y[i] ] ); } return out; } From d7dd82aba262405b85091ecd138ad947d7b7345b Mon Sep 17 00:00:00 2001 From: SuYaSh-PaThAk04 Date: Sat, 24 Jan 2026 13:18:28 +0530 Subject: [PATCH 5/6] chore: restore unrelated files from develop --- .../_tools/bib/citation-reference/lib/sync.js | 3 +- .../ndarray/slice/benchmark/benchmark.js | 160 +++++++++--------- .../@stdlib/utils/values/lib/main.js | 3 +- 3 files changed, 82 insertions(+), 84 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js index 10ae6b8aa0ef..1a699af75341 100644 --- a/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js +++ b/lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js @@ -56,12 +56,11 @@ var debug = logger( 'to-reference:sync' ); * @throws {TypeError} first argument must be a string * @throws {TypeError} options argument must be an object * @throws {TypeError} must provide valid options -* @throws {Error} if the citation cannot be generated * @returns {string} reference * * @example * var ref = toReference( '@press1992' ); -* // throws +* // returns '...' */ function toReference( id, options ) { var outFile; diff --git a/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js b/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js index 6d830a82aac1..3a5ccf49330f 100644 --- a/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js @@ -71,11 +71,11 @@ bench( pkg+'::0d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [], { 'dtype': 'float64' }), - empty( [], { 'dtype': 'float32' }), - empty( [], { 'dtype': 'int32' }), - empty( [], { 'dtype': 'complex128' }), - empty( [], { 'dtype': 'generic' }) + empty( [], { 'dtype': 'float64' } ), + empty( [], { 'dtype': 'float32' } ), + empty( [], { 'dtype': 'int32' } ), + empty( [], { 'dtype': 'complex128' } ), + empty( [], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -136,11 +136,11 @@ bench( pkg+'::1d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2 ], { 'dtype': 'float64' }), - empty( [ 2 ], { 'dtype': 'float32' }), - empty( [ 2 ], { 'dtype': 'int32' }), - empty( [ 2 ], { 'dtype': 'complex128' }), - empty( [ 2 ], { 'dtype': 'generic' }) + empty( [ 2 ], { 'dtype': 'float64' } ), + empty( [ 2 ], { 'dtype': 'float32' } ), + empty( [ 2 ], { 'dtype': 'int32' } ), + empty( [ 2 ], { 'dtype': 'complex128' } ), + empty( [ 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -201,11 +201,11 @@ bench( pkg+'::1d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2 ], { 'dtype': 'float64' }), - empty( [ 2 ], { 'dtype': 'float32' }), - empty( [ 2 ], { 'dtype': 'int32' }), - empty( [ 2 ], { 'dtype': 'complex128' }), - empty( [ 2 ], { 'dtype': 'generic' }) + empty( [ 2 ], { 'dtype': 'float64' } ), + empty( [ 2 ], { 'dtype': 'float32' } ), + empty( [ 2 ], { 'dtype': 'int32' } ), + empty( [ 2 ], { 'dtype': 'complex128' } ), + empty( [ 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -271,11 +271,11 @@ bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2 ], { 'dtype': 'float64' }), - empty( [ 2 ], { 'dtype': 'float32' }), - empty( [ 2 ], { 'dtype': 'int32' }), - empty( [ 2 ], { 'dtype': 'complex128' }), - empty( [ 2 ], { 'dtype': 'generic' }) + empty( [ 2 ], { 'dtype': 'float64' } ), + empty( [ 2 ], { 'dtype': 'float32' } ), + empty( [ 2 ], { 'dtype': 'int32' } ), + empty( [ 2 ], { 'dtype': 'complex128' } ), + empty( [ 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -339,11 +339,11 @@ bench( pkg+'::2d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -404,11 +404,11 @@ bench( pkg+'::2d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -474,11 +474,11 @@ bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -542,11 +542,11 @@ bench( pkg+'::3d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -607,11 +607,11 @@ bench( pkg+'::3d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -677,11 +677,11 @@ bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -745,11 +745,11 @@ bench( pkg+'::4d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -810,11 +810,11 @@ bench( pkg+'::4d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -880,11 +880,11 @@ bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -948,11 +948,11 @@ bench( pkg+'::5d,non-base', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -1013,11 +1013,11 @@ bench( pkg+'::5d,non-base,reduced', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ @@ -1083,11 +1083,11 @@ bench( pkg+'::5d,non-base,out-of-bounds', function benchmark( b ) { /* eslint-disable object-curly-newline */ values = [ - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }), - empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' }) + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ), + empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } ) ]; /* eslint-enable object-curly-newline */ diff --git a/lib/node_modules/@stdlib/utils/values/lib/main.js b/lib/node_modules/@stdlib/utils/values/lib/main.js index a0333be8e365..079068895502 100644 --- a/lib/node_modules/@stdlib/utils/values/lib/main.js +++ b/lib/node_modules/@stdlib/utils/values/lib/main.js @@ -53,8 +53,7 @@ function objectValues( obj ) { } keys = objectKeys( obj ); len = keys.length; - out = []; - out.length = len; + out = new Array( len ); for ( i = 0; i < len; i++ ) { out[ i ] = obj[ keys[i] ]; } From 8c5bb942f74777417f589e8abc0c73521ce2e374 Mon Sep 17 00:00:00 2001 From: SuYaSh-PaThAk04 Date: Sat, 24 Jan 2026 22:13:44 +0530 Subject: [PATCH 6/6] chore: trigger CI