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
|
Rev | Line | |
---|
[d565449] | 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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.