Files
base/node_modules/get-symbol-description/getInferredName.js
T
eewing c0fae761da
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m24s
PWA
2026-02-19 07:41:49 -06:00

14 lines
474 B
JavaScript

'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;