Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions lib/node_modules/@stdlib/assert/has-bigint-support/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@

// MODULES //

var getGlobal = require( '@stdlib/utils/global' );


// VARIABLES //

var Global = getGlobal();
var BigInt = require( '@stdlib/bigint/ctor' );


// MAIN //
Expand All @@ -40,12 +35,7 @@ var Global = getGlobal();
* // returns <boolean>
*/
function hasBigIntSupport() {
return (
typeof Global.BigInt === 'function' &&
typeof BigInt === 'function' && // eslint-disable-line stdlib/require-globals
typeof Global.BigInt( '1' ) === 'bigint' &&
typeof BigInt( '1' ) === 'bigint' // eslint-disable-line stdlib/require-globals, no-undef
);
return ( BigInt !== null );
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// MAIN //

/**

Check failure on line 23 in lib/node_modules/@stdlib/assert/is-enumerable-property/lib/native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Encountered an error while running code: `Cannot convert undefined or null to object`.Did you mean to include a `// throws <TypeError>` annotation instead of `// returns false`?

Check failure on line 23 in lib/node_modules/@stdlib/assert/is-enumerable-property/lib/native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Encountered an error while running code: `Cannot convert undefined or null to object`.Did you mean to include a `// throws <TypeError>` annotation instead of `// returns false`?

Check failure on line 23 in lib/node_modules/@stdlib/assert/is-enumerable-property/lib/native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Encountered an error while running code: `Cannot convert undefined or null to object`.Did you mean to include a `// throws <TypeError>` annotation instead of `// returns false`?

Check failure on line 23 in lib/node_modules/@stdlib/assert/is-enumerable-property/lib/native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Encountered an error while running code: `Cannot convert undefined or null to object`.Did you mean to include a `// throws <TypeError>` annotation instead of `// returns true`?
* Tests if an object's own property is enumerable.
*
* @private
Expand All @@ -45,6 +45,14 @@
*
* var bool = isEnumerableProperty( beep, 'hasOwnProperty' );
* // returns false
*
* @example
* var bool = isEnumerableProperty( null, 'boop' );
* // throws <TypeError>
*
* @example
* var bool = isEnumerableProperty( void 0, 'boop' );
* // throws <TypeError>
*/
var isEnumerableProperty = Object.prototype.propertyIsEnumerable;

Expand Down
Loading