diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/esm/setFunctionName.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/esm/setFunctionName.js | 12 |
1 files changed, 12 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 0000000..82213ce --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/setFunctionName.js @@ -0,0 +1,12 @@ +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 };
\ No newline at end of file |
