summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/esm/setFunctionName.js
blob: dc8ae48db15aeb934a46787f51654f68aafd4d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
import _typeof from "./typeof.js";
export default function setFunctionName(e, t, n) {
  "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : "");
  try {
    Object.defineProperty(e, "name", {
      configurable: !0,
      value: n ? n + " " + t : t
    });
  } catch (e) {}
  return e;
}