1 var DESCRIPTORS = require('../internals/descriptors');
2 var hasOwn = require('../internals/has-own-property');
4 var FunctionPrototype = Function.prototype;
5 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
6 var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
8 var EXISTS = hasOwn(FunctionPrototype, 'name');
9 // additional protection from minified / mangled / dropped function names
10 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
11 var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
16 CONFIGURABLE: CONFIGURABLE