mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
13 lines
415 B
JavaScript
13 lines
415 B
JavaScript
import _typeof from "./typeof.js";
|
|
import _Object$defineProperty from "core-js-pure/features/object/define-property.js";
|
|
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;
|
|
}
|
|
export { setFunctionName as default }; |