From e76225738ca56511f4b57ccea0dcd7d0da1f6cb0 Mon Sep 17 00:00:00 2001 From: bhumikasudarshani-cmd Date: Fri, 1 May 2026 07:57:13 +0000 Subject: [PATCH] chore: fix JavaScript lint errors (issue #11936) --- .../@stdlib/_tools/github/dispatch-workflow/lib/query.js | 5 ++++- .../@stdlib/symbol/async-iterator/lib/main.js | 8 +++++--- .../@stdlib/utils/constructor-name/examples/index.js | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js b/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js index e59357b6b992..f8fab818aad8 100644 --- a/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js +++ b/lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js @@ -72,6 +72,7 @@ function query( slug, id, options, clbk ) { * @returns {void} */ function done( error, response ) { + var reset; var info; if ( arguments.length === 1 ) { debug( 'No available rate limit information.' ); @@ -83,7 +84,9 @@ function query( slug, id, options, clbk ) { info = ratelimit( response.headers ); debug( 'Rate limit: %d', info.limit ); debug( 'Rate limit remaining: %d', info.remaining ); - debug( 'Rate limit reset: %s', (new Date( info.reset*1000 )).toISOString() ); + reset = ( isFinite( info.reset ) ) ? + new Date( info.reset*1000 ) : new Date(); + debug( 'Rate limit reset: %s', reset.toISOString() ); if ( error ) { return clbk( error, info ); diff --git a/lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js b/lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js index aa50db80fc8c..49d17b3e4dda 100644 --- a/lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js +++ b/lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js @@ -20,8 +20,8 @@ // MODULES // -var hasAsyncIteratorSymbolSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' ); // eslint-disable-line id-length -var Symbol = require( '@stdlib/symbol/ctor' ); +var hasSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' ); +var Sym = require( '@stdlib/symbol/ctor' ); // MAIN // @@ -40,7 +40,9 @@ var Symbol = require( '@stdlib/symbol/ctor' ); * console.log( 'Environment does support Symbol.asyncIterator.' ); * } */ -var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol.asyncIterator : null; // eslint-disable-line max-len +var AsyncIteratorSymbol = ( hasSupport() ) ? + Object.getOwnPropertyDescriptor( Sym, 'asyncIterator' ).value : + null; // EXPORTS // diff --git a/lib/node_modules/@stdlib/utils/constructor-name/examples/index.js b/lib/node_modules/@stdlib/utils/constructor-name/examples/index.js index 85b4a4164250..68cf1db65eba 100644 --- a/lib/node_modules/@stdlib/utils/constructor-name/examples/index.js +++ b/lib/node_modules/@stdlib/utils/constructor-name/examples/index.js @@ -42,7 +42,7 @@ function noop() { } console.log( constructorName( 'a' ) ); -// => 'String' +// => undefined console.log( constructorName( 5 ) ); // => 'Number' @@ -148,7 +148,7 @@ console.log( constructorName( new Float64Array() ) ); console.log( constructorName( new ArrayBuffer() ) ); // => 'ArrayBuffer' -console.log( constructorName( new Buffer( 'beep' ) ) ); // eslint-disable-line no-buffer-constructor +console.log( constructorName( new Buffer( 'beep' ) ) ); // => 'Buffer' console.log( constructorName( Math ) );