Projekt

Obecné

Profil

Stáhnout (287 Bajtů) Statistiky
| Větev: | Revize:
1
'use strict';
2

    
3
var getInferredName;
4
try {
5
	// eslint-disable-next-line no-new-func
6
	getInferredName = Function('s', 'return { [s]() {} }[s].name;');
7
} catch (e) {}
8

    
9
var inferred = function () {};
10
module.exports = getInferredName && inferred.name === 'inferred' ? getInferredName : null;
(9-9/26)