aswi2020vldc-gitlab/templetes/node_modules/es-abstract/helpers/getInferredName.js @ 2aa583fe
1 | 3a515b92 | cagy | '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; |