fei.wang
9 天以前 ae7b22322555448d95fd56f505bafa325c167a26
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
 
/** @type {NonNullable<import('./getInferredName')> | undefined} */
var getInferredName;
try {
    // eslint-disable-next-line no-new-func, no-extra-parens
    getInferredName = /** @type {NonNullable<import('./getInferredName')>} */ (Function('s', 'return { [s]() {} }[s].name;'));
} catch (e) {}
 
var inferred = function () {};
 
/** @type {import('./getInferredName')} */
module.exports = getInferredName && inferred.name === 'inferred' ? getInferredName : null;