Download Goat-Bot-V2/node_modules/@babel/runtime/helpers/esm/construct.js from sweet2004/mitaaaa: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/spaces/sweet2004/mitaaaa/resolve/main/Goat-Bot-V2/node_modules/%40babel/runtime/helpers/esm/construct.js
- Command line
-
hf download hf://spaces/sweet2004/mitaaaa/Goat-Bot-V2/node_modules/@babel/runtime/helpers/esm/construct.js
-
curl -L -o construct.js https://huggingface.co/spaces/sweet2004/mitaaaa/resolve/main/Goat-Bot-V2/node_modules/%40babel/runtime/helpers/esm/construct.js
614 Bytes
| import setPrototypeOf from "./setPrototypeOf.js"; | |
| import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; | |
| export default function _construct(Parent, args, Class) { | |
| if (isNativeReflectConstruct()) { | |
| _construct = Reflect.construct.bind(); | |
| } else { | |
| _construct = function _construct(Parent, args, Class) { | |
| var a = [null]; | |
| a.push.apply(a, args); | |
| var Constructor = Function.bind.apply(Parent, a); | |
| var instance = new Constructor(); | |
| if (Class) setPrototypeOf(instance, Class.prototype); | |
| return instance; | |
| }; | |
| } | |
| return _construct.apply(null, arguments); | |
| } |