From 4179baeaf72a67ca26685a2f0fb3b4dd056e75ff Mon Sep 17 00:00:00 2001 From: Payal Date: Tue, 16 Sep 2025 22:26:12 +0530 Subject: [PATCH 1/2] Fix ESLint errors for Issue #8082 --- .../assert/is-odd/benchmark/benchmark.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js index 7e002c8e1928..6a080ceee223 100644 --- a/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js @@ -15,9 +15,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -/* eslint-disable no-new-wrappers, no-undefined, no-empty-function */ - 'use strict'; // MODULES // @@ -47,7 +44,7 @@ bench( pkg+'::primitives', function benchmark( b ) { true, false, null, - undefined + void 0 ]; b.tic(); @@ -73,7 +70,9 @@ bench( pkg+'::objects', function benchmark( b ) { values = [ [], {}, - function noop() {}, + function noop() { + // No operation. + }, new Number( 2.0 ), new Number( 3.0 ), new Number( 3.14 ) @@ -110,7 +109,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) { true, false, null, - undefined + void 0 ]; b.tic(); @@ -136,7 +135,9 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) { values = [ [], {}, - function noop() {}, + function noop() { + // No operation. + }, new Number( 2.0 ), new Number( 3.0 ), new Number( 3.14 ) @@ -173,7 +174,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) { true, false, null, - undefined + void 0 ]; b.tic(); @@ -199,7 +200,9 @@ bench( pkg+'::objects:isObject', function benchmark( b ) { values = [ [], {}, - function noop() {}, + function noop() { + // No operation. + }, new Number( 2.0 ), new Number( 3.0 ), new Number( 3.14 ) From 3d7bcd9c26e22c7e8710ff2f5eb9ce0ac3ebf589 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 16 Sep 2025 22:15:34 -0700 Subject: [PATCH 2/2] bench: revert unnecessary changes Signed-off-by: Athan --- .../@stdlib/assert/is-odd/benchmark/benchmark.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js index 6a080ceee223..4a54a094ecc7 100644 --- a/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-odd/benchmark/benchmark.js @@ -15,6 +15,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + +/* eslint-disable no-empty-function */ + 'use strict'; // MODULES // @@ -70,9 +73,7 @@ bench( pkg+'::objects', function benchmark( b ) { values = [ [], {}, - function noop() { - // No operation. - }, + function noop() {}, new Number( 2.0 ), new Number( 3.0 ), new Number( 3.14 ) @@ -135,9 +136,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) { values = [ [], {}, - function noop() { - // No operation. - }, + function noop() {}, new Number( 2.0 ), new Number( 3.0 ), new Number( 3.14 ) @@ -200,9 +199,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) { values = [ [], {}, - function noop() { - // No operation. - }, + function noop() {}, new Number( 2.0 ), new Number( 3.0 ), new Number( 3.14 )