ICT30016-Assignment-3/node_modules/@babel/runtime/helpers/esm/setFunctionName.js
dlawler489 a79a6afd34 intial
intial
2025-09-16 12:09:52 +10:00

12 lines
No EOL
328 B
JavaScript

import _typeof from "./typeof.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 };