From fe0c81949ed25fa8ebe5d4ef03df4f0640e49f59 Mon Sep 17 00:00:00 2001 From: anoofmhd Date: Mon, 8 Dec 2025 17:17:04 +0530 Subject: [PATCH 1/2] fixed Javascript lint errors --- .../assert/is-configurable-property-in/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js index 403eaaea9a83..8eebf67d8fdf 100644 --- a/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js @@ -33,7 +33,7 @@ bench( pkg, function benchmark( b ) { var arr; var i; - arr = new Array( 100 ); + arr = Array( 100 ).fill( 0 ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { From c0855527ec55ce8eeb67b363928bfc38baa5d5cc Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 8 Dec 2025 17:46:22 -0800 Subject: [PATCH 2/2] bench: refactor to preserve ES5 Signed-off-by: Athan --- .../assert/is-configurable-property-in/benchmark/benchmark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js index 8eebf67d8fdf..f604ad721813 100644 --- a/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-configurable-property-in/benchmark/benchmark.js @@ -22,6 +22,7 @@ var bench = require( '@stdlib/bench' ); var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; +var zeros = require( '@stdlib/array/base/zeros' ); var pkg = require( './../package.json' ).name; var isConfigurablePropertyIn = require( './../lib' ); @@ -33,7 +34,7 @@ bench( pkg, function benchmark( b ) { var arr; var i; - arr = Array( 100 ).fill( 0 ); + arr = zeros( 100 ); b.tic(); for ( i = 0; i < b.iterations; i++ ) {