Server IP : 162.213.251.212 / Your IP : 3.129.208.224 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/./www/easybuyer/node_modules/internal-slot/ |
Upload File : |
'use strict'; var GetIntrinsic = require('get-intrinsic'); var has = require('has'); var channel = require('side-channel')(); var $TypeError = GetIntrinsic('%TypeError%'); var SLOT = { assert: function (O, slot) { if (!O || (typeof O !== 'object' && typeof O !== 'function')) { throw new $TypeError('`O` is not an object'); } if (typeof slot !== 'string') { throw new $TypeError('`slot` must be a string'); } channel.assert(O); if (!SLOT.has(O, slot)) { throw new $TypeError('`' + slot + '` is not present on `O`'); } }, get: function (O, slot) { if (!O || (typeof O !== 'object' && typeof O !== 'function')) { throw new $TypeError('`O` is not an object'); } if (typeof slot !== 'string') { throw new $TypeError('`slot` must be a string'); } var slots = channel.get(O); return slots && slots['$' + slot]; }, has: function (O, slot) { if (!O || (typeof O !== 'object' && typeof O !== 'function')) { throw new $TypeError('`O` is not an object'); } if (typeof slot !== 'string') { throw new $TypeError('`slot` must be a string'); } var slots = channel.get(O); return !!slots && has(slots, '$' + slot); }, set: function (O, slot, V) { if (!O || (typeof O !== 'object' && typeof O !== 'function')) { throw new $TypeError('`O` is not an object'); } if (typeof slot !== 'string') { throw new $TypeError('`slot` must be a string'); } var slots = channel.get(O); if (!slots) { slots = {}; channel.set(O, slots); } slots['$' + slot] = V; } }; if (Object.freeze) { Object.freeze(SLOT); } module.exports = SLOT;