massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / function-name.js
1 var DESCRIPTORS = require('../internals/descriptors');
2 var hasOwn = require('../internals/has-own-property');
3
4 var FunctionPrototype = Function.prototype;
5 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
6 var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
7
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));
12
13 module.exports = {
14   EXISTS: EXISTS,
15   PROPER: PROPER,
16   CONFIGURABLE: CONFIGURABLE
17 };