We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 592cd21 commit 54dbe87Copy full SHA for 54dbe87
lib/node_modules/@stdlib/assert/has-define-property-support/lib/main.js
@@ -35,16 +35,13 @@ var defineProperty = require( './define_property.js' );
35
* // returns <boolean>
36
*/
37
function hasDefinePropertySupport() {
38
- var bool;
39
-
40
// Test basic support...
41
try {
42
defineProperty( {}, 'x', {} );
43
- bool = true;
+ return true;
44
} catch ( err ) { // eslint-disable-line no-unused-vars
45
- bool = false;
+ return false;
46
}
47
- return bool;
48
49
50
0 commit comments