1 | 'use strict';
|
2 | var DESCRIPTORS = require('../internals/descriptors');
|
3 | var hasOwn = require('../internals/has-own-property');
|
4 |
|
5 | var FunctionPrototype = Function.prototype;
|
6 |
|
7 | var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
8 |
|
9 | var EXISTS = hasOwn(FunctionPrototype, 'name');
|
10 |
|
11 | var PROPER = EXISTS && (function something() { }).name === 'something';
|
12 | var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
13 |
|
14 | module.exports = {
|
15 | EXISTS: EXISTS,
|
16 | PROPER: PROPER,
|
17 | CONFIGURABLE: CONFIGURABLE
|
18 | };
|