source: node_modules/@babel/runtime/helpers/esm/setFunctionName.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 304 bytes
Line 
1import _typeof from "./typeof.js";
2export default 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}
Note: See TracBrowser for help on using the repository browser.