Skip to content

Commit 7d9f669

Browse files
fix: async iterator ESLint errors
1 parent 8c535ec commit 7d9f669

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib

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

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

2121
// MODULES //
2222

23-
var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol[ 'asyncIterator' ] : null; // eslint-disable-line max-len
23+
var hasAsyncIteratorSymbolSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' );
2424

2525

2626
// MAIN //
@@ -39,7 +39,9 @@ var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol[ 'asyncIt
3939
* console.log( 'Environment does support Symbol.asyncIterator.' );
4040
* }
4141
*/
42-
var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol[ 'asyncIterator' ] : null; // eslint-disable-line max-len
42+
var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ?
43+
Object.getOwnPropertyDescriptor( Symbol, 'asyncIterator' ).value :
44+
null;
4345

4446

4547
// EXPORTS //

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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' ) ) );
151+
console.log( constructorName( new Buffer( 'beep' ) ) );
152152
// => 'Buffer'
153153

154154
console.log( constructorName( Math ) );

0 commit comments

Comments
 (0)