Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/inherits/inherits_browser.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/inherits/inherits_browser.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject/masteringModule/node_modules/inherits/inherits_browser.js
-
curl -L -o inherits_browser.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/inherits/inherits_browser.js
753 Bytes
| if (typeof Object.create === 'function') { | |
| // implementation from standard node.js 'util' module | |
| module.exports = function inherits(ctor, superCtor) { | |
| if (superCtor) { | |
| ctor.super_ = superCtor | |
| ctor.prototype = Object.create(superCtor.prototype, { | |
| constructor: { | |
| value: ctor, | |
| enumerable: false, | |
| writable: true, | |
| configurable: true | |
| } | |
| }) | |
| } | |
| }; | |
| } else { | |
| // old school shim for old browsers | |
| module.exports = function inherits(ctor, superCtor) { | |
| if (superCtor) { | |
| ctor.super_ = superCtor | |
| var TempCtor = function () {} | |
| TempCtor.prototype = superCtor.prototype | |
| ctor.prototype = new TempCtor() | |
| ctor.prototype.constructor = ctor | |
| } | |
| } | |
| } | |