Skip to content

Commit 51601a6

Browse files
committed
Simplify bug detection
1 parent e2162f4 commit 51601a6

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

lib/node_modules/@stdlib/utils/keys/lib/has_enumerable_prototype_bug.js

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,13 @@
2121
// MODULES //
2222

2323
var isEnumerableProperty = require( '@stdlib/assert/is-enumerable-property' );
24-
25-
26-
// VARIABLES //
27-
28-
var bool;
29-
30-
31-
// FUNCTIONS //
32-
33-
/**
34-
* No-op.
35-
*
36-
* @private
37-
*/
38-
function noop() {
39-
// No-op...
40-
}
24+
var noop = require( '@stdlib/utils/noop' );
4125

4226

4327
// MAIN //
4428

4529
// Note: certain environments treat an object's prototype as enumerable, which, as a matter of convention, it shouldn't be...
46-
bool = isEnumerableProperty( noop, 'prototype' );
30+
var bool = isEnumerableProperty( noop, 'prototype' );
4731

4832

4933
// EXPORTS //

0 commit comments

Comments
 (0)