Download web/client/node_modules/domexception/lib/VoidFunction.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/domexception/lib/VoidFunction.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/client/node_modules/domexception/lib/VoidFunction.js
-
curl -L -o VoidFunction.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/domexception/lib/VoidFunction.js
728 Bytes
| ; | |
| const conversions = require("webidl-conversions"); | |
| const utils = require("./utils.js"); | |
| exports.convert = (globalObject, value, { context = "The provided value" } = {}) => { | |
| if (typeof value !== "function") { | |
| throw new globalObject.TypeError(context + " is not a function"); | |
| } | |
| function invokeTheCallbackFunction() { | |
| const thisArg = utils.tryWrapperForImpl(this); | |
| let callResult; | |
| callResult = Reflect.apply(value, thisArg, []); | |
| } | |
| invokeTheCallbackFunction.construct = () => { | |
| let callResult = Reflect.construct(value, []); | |
| }; | |
| invokeTheCallbackFunction[utils.wrapperSymbol] = value; | |
| invokeTheCallbackFunction.objectReference = value; | |
| return invokeTheCallbackFunction; | |
| }; | |