setFunctionName.js 415 B

123456789101112
  1. var _typeof = require("./typeof.js")["default"];
  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. module.exports = setFunctionName, module.exports.__esModule = true, module.exports["default"] = module.exports;