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