1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const lodash_1 = require("../../wrap/lodash");
|
4 | function fakeName(path, realThing) {
|
5 | return `${path}: ${nameFor(realThing)}`;
|
6 | }
|
7 | exports.default = fakeName;
|
8 | const nameFor = (realThing) => {
|
9 | if (!lodash_1.default.isFunction(realThing))
|
10 | return '';
|
11 | return realThing.name ? realThing.name : '(anonymous function)';
|
12 | };
|