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:
328 bytes
|
Line | |
---|
1 | import _typeof from "./typeof.js";
|
---|
2 | function setFunctionName(e, t, n) {
|
---|
3 | "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : "");
|
---|
4 | try {
|
---|
5 | Object.defineProperty(e, "name", {
|
---|
6 | configurable: !0,
|
---|
7 | value: n ? n + " " + t : t
|
---|
8 | });
|
---|
9 | } catch (e) {}
|
---|
10 | return e;
|
---|
11 | }
|
---|
12 | export { setFunctionName as default }; |
---|
Note:
See
TracBrowser
for help on using the repository browser.