Skip to content

Commit 7ac99e9

Browse files
fix: resolve JavaScript lint errors (issue stdlib-js#11867)
1 parent 4479454 commit 7ac99e9

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib

lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
// MODULES //
2222

23-
var hasAsyncIteratorSymbolSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' ); // eslint-disable-line id-length
23+
var hasSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' );
24+
var Sym = require( '@stdlib/symbol/ctor' );
2425

2526

2627
// MAIN //
@@ -39,7 +40,9 @@ var hasAsyncIteratorSymbolSupport = require( '@stdlib/assert/has-async-iterator-
3940
* console.log( 'Environment does support Symbol.asyncIterator.' );
4041
* }
4142
*/
42-
var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol.asyncIterator : null; // eslint-disable-line max-len
43+
var AsyncIteratorSymbol = ( hasSupport() ) ?
44+
Object.getOwnPropertyDescriptor( Sym, 'asyncIterator' ).value :
45+
null;
4346

4447

4548
// EXPORTS //

lib/node_modules/@stdlib/utils/constructor-name/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function noop() {
4242
}
4343

4444
console.log( constructorName( 'a' ) );
45-
// => 'String'
45+
// => undefined
4646

4747
console.log( constructorName( 5 ) );
4848
// => 'Number'
@@ -148,7 +148,7 @@ console.log( constructorName( new Float64Array() ) );
148148
console.log( constructorName( new ArrayBuffer() ) );
149149
// => 'ArrayBuffer'
150150

151-
console.log( constructorName( new Buffer( 'beep' ) ) ); // eslint-disable-line no-buffer-constructor
151+
console.log( constructorName( new Buffer( 'beep' ) ) );
152152
// => 'Buffer'
153153

154154
console.log( constructorName( Math ) );

0 commit comments

Comments
 (0)