Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2022/IsDataDescriptor.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2022/IsDataDescriptor.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/2022/IsDataDescriptor.js
-
curl -L -o IsDataDescriptor.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2022/IsDataDescriptor.js
461 Bytes
| ; | |
| var hasOwn = require('hasown'); | |
| var Type = require('./Type'); | |
| var assertRecord = require('../helpers/assertRecord'); | |
| // https://262.ecma-international.org/5.1/#sec-8.10.2 | |
| module.exports = function IsDataDescriptor(Desc) { | |
| if (typeof Desc === 'undefined') { | |
| return false; | |
| } | |
| assertRecord(Type, 'Property Descriptor', 'Desc', Desc); | |
| if (!hasOwn(Desc, '[[Value]]') && !hasOwn(Desc, '[[Writable]]')) { | |
| return false; | |
| } | |
| return true; | |
| }; | |