From 08f68dfeba482704fe8e36add409c1a00a85b432 Mon Sep 17 00:00:00 2001 From: Jugal Patel Date: Wed, 4 Feb 2026 09:53:25 +0530 Subject: [PATCH 1/2] Fix Lint issues for file 'lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js' Signed-off-by: Jugal Patel --- .../@stdlib/math/strided/special/cbrt-by/test/test.main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js index 3731585c663e..c02eec037db5 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js @@ -74,7 +74,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -82,7 +83,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = [] + x.length = 5; // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; From cb0f31edd1536a43f3042c49f94f479172ae1aac Mon Sep 17 00:00:00 2001 From: Jugal Patel Date: Wed, 4 Feb 2026 05:14:02 +0000 Subject: [PATCH 2/2] chore: fix JavaScript lint errors (issue #10073) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../lib/index.js | 27 +++++++++++++------ .../strided/special/cbrt-by/test/test.main.js | 2 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js index e85c8a843556..6f3b20f80f2d 100644 --- a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js +++ b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js @@ -25,7 +25,6 @@ * * @example * var remark = require( 'remark' ); -* var run = require( '@stdlib/_tools/remark/plugins/remark-run-javascript-examples' ); * * var str = [ * '
', @@ -59,16 +58,28 @@ * '' * ]; * -* remark().use( run ).process( str.join( '\n' ), done ); -* // => 'HELLO WORLD' +* var run = require( '@stdlib/_tools/remark/plugins/remark-run-javascript-examples' ); * -* function done( error ) { -* if ( error ) { -* throw error; -* } -* } +* run; +* // => function attacher( options ) { +* // var opts; +* // var err; +* // +* // // Set default options: +* // opts = copy( defaults ); +* // +* // // NOTE: cannot use `arguments.length` check, as `options` may be explicitly passed as `undefined` +* // if ( options !== void 0 ) { +* // err = validate( opts, options ); +* // if ( err ) { +* // throw err; +* // } +* // } +* // return runner( opts ); +* // } */ + // MODULES // var main = require( './main.js' ); diff --git a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js index c02eec037db5..88d8fc6c6f88 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js @@ -83,7 +83,7 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = [] + x = []; x.length = 5; // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];