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

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

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