Spaces:
Runtime error
Runtime error
Download static/node_modules/has-proto/index.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/has-proto/index.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/has-proto/index.js
-
curl -L -o index.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/has-proto/index.js
302 Bytes
| ; | |
| var test = { | |
| __proto__: null, | |
| foo: {} | |
| }; | |
| var $Object = Object; | |
| /** @type {import('.')} */ | |
| module.exports = function hasProto() { | |
| // @ts-expect-error: TS errors on an inherited property for some reason | |
| return { __proto__: test }.foo === test.foo | |
| && !(test instanceof $Object); | |
| }; | |