Skip to content

Commit c785fec

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

File tree

2 files changed

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

2 files changed

+10
-12
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
@@ -20,12 +20,7 @@
2020

2121
// MODULES //
2222

23-
var getGlobal = require( '@stdlib/utils/global' );
24-
25-
26-
// VARIABLES //
27-
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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@
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)