Skip to content

Commit 4b15440

Browse files
committed
chore: fix JavaScript lint errors (issue #8050)
1 parent e9406ad commit 4b15440

File tree

2 files changed

+12
-14
lines changed
  • lib/node_modules/@stdlib/assert

2 files changed

+12
-14
lines changed

lib/node_modules/@stdlib/assert/has-bigint-support/lib/main.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@
1818

1919
'use strict';
2020

21-
// MODULES //
22-
23-
var getGlobal = require( '@stdlib/utils/global' );
24-
25-
2621
// VARIABLES //
2722

28-
var Global = getGlobal();
23+
var BigInt = require( '@stdlib/bigint/ctor' );
2924

3025

3126
// MAIN //
@@ -40,12 +35,7 @@ var Global = getGlobal();
4035
* // returns <boolean>
4136
*/
4237
function hasBigIntSupport() {
43-
return (
44-
typeof Global.BigInt === 'function' &&
45-
typeof BigInt === 'function' && // eslint-disable-line stdlib/require-globals
46-
typeof Global.BigInt( '1' ) === 'bigint' &&
47-
typeof BigInt( '1' ) === 'bigint' // eslint-disable-line stdlib/require-globals, no-undef
48-
);
38+
return ( BigInt !== null );
4939
}
5040

5141

lib/node_modules/@stdlib/assert/is-enumerable-property/lib/native.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,27 @@
3232
*
3333
* @example
3434
* var beep = {
35-
* 'boop': true
35+
* 'boop': true
3636
* };
3737
*
3838
* var bool = isEnumerableProperty( beep, 'boop' );
3939
* // returns true
4040
*
4141
* @example
4242
* var beep = {
43-
* 'boop': true
43+
* 'boop': true
4444
* };
4545
*
4646
* var bool = isEnumerableProperty( beep, 'hasOwnProperty' );
4747
* // returns false
48+
*
49+
* @example
50+
* var bool = isEnumerableProperty( null, 'boop' );
51+
* // throws <TypeError>
52+
*
53+
* @example
54+
* var bool = isEnumerableProperty( void 0, 'boop' );
55+
* // throws <TypeError>
4856
*/
4957
var isEnumerableProperty = Object.prototype.propertyIsEnumerable;
5058

0 commit comments

Comments
 (0)