diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/esm/setFunctionName.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/esm/setFunctionName.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/esm/setFunctionName.js b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js new file mode 100644 index 00000000..dc8ae48d --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js @@ -0,0 +1,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; +}
\ No newline at end of file |
