Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/internal-slot/index.js

    r0c6b92a r79a0317  
    11'use strict';
    22
     3/** @typedef {`$${import('.').InternalSlot}`} SaltedInternalSlot */
     4/** @typedef {{ [k in SaltedInternalSlot]?: unknown }} SlotsObject */
     5
    36var hasOwn = require('hasown');
     7/** @type {import('side-channel').Channel<object, SlotsObject>} */
    48var channel = require('side-channel')();
    59
    610var $TypeError = require('es-errors/type');
    711
     12/** @type {import('.')} */
    813var SLOT = {
    914        assert: function (O, slot) {
     
    2732                }
    2833                var slots = channel.get(O);
    29                 return slots && slots['$' + slot];
     34                // eslint-disable-next-line no-extra-parens
     35                return slots && slots[/** @type {SaltedInternalSlot} */ ('$' + slot)];
    3036        },
    3137        has: function (O, slot) {
     
    3743                }
    3844                var slots = channel.get(O);
    39                 return !!slots && hasOwn(slots, '$' + slot);
     45                // eslint-disable-next-line no-extra-parens
     46                return !!slots && hasOwn(slots, /** @type {SaltedInternalSlot} */ ('$' + slot));
    4047        },
    4148        set: function (O, slot, V) {
     
    5158                        channel.set(O, slots);
    5259                }
    53                 slots['$' + slot] = V;
     60                // eslint-disable-next-line no-extra-parens
     61                slots[/** @type {SaltedInternalSlot} */ ('$' + slot)] = V;
    5462        }
    5563};
Note: See TracChangeset for help on using the changeset viewer.