source: imaps-frontend/node_modules/get-symbol-description/getInferredName.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 474 bytes
Line 
1'use strict';
2
3/** @type {NonNullable<import('./getInferredName')> | undefined} */
4var getInferredName;
5try {
6 // eslint-disable-next-line no-new-func, no-extra-parens
7 getInferredName = /** @type {NonNullable<import('./getInferredName')>} */ (Function('s', 'return { [s]() {} }[s].name;'));
8} catch (e) {}
9
10var inferred = function () {};
11
12/** @type {import('./getInferredName')} */
13module.exports = getInferredName && inferred.name === 'inferred' ? getInferredName : null;
Note: See TracBrowser for help on using the repository browser.