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/get-symbol-description/index.js

    r0c6b92a r79a0317  
    33var GetIntrinsic = require('get-intrinsic');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66
    77var $SyntaxError = require('es-errors/syntax');
    88var getGlobalSymbolDescription = GetIntrinsic('%Symbol.keyFor%', true);
     9/** @type {undefined | ((thisArg: symbol | Symbol) => symbol)} */
    910var thisSymbolValue = callBound('%Symbol.prototype.valueOf%', true);
     11/** @type {undefined | ((thisArg: symbol | Symbol) => string)} */
    1012var symToStr = callBound('Symbol.prototype.toString', true);
     13/** @type {(thisArg: string, start?: number, end?: number) => string} */
    1114var $strSlice = callBound('String.prototype.slice');
    1215
    1316var getInferredName = require('./getInferredName');
    1417
     18/** @type {import('.')} */
    1519/* eslint-disable consistent-return */
    1620module.exports = callBound('%Symbol.prototype.description%', true) || function getSymbolDescription(symbol) {
     
    3842        }
    3943
    40         desc = $strSlice(symToStr(sym), 7, -1); // str.slice('Symbol('.length, -')'.length);
     44        // eslint-disable-next-line no-extra-parens
     45        desc = $strSlice(/** @type {NonNullable<typeof symToStr>} */ (symToStr)(sym), 7, -1); // str.slice('Symbol('.length, -')'.length);
    4146        if (desc) {
    4247                return desc;
Note: See TracChangeset for help on using the changeset viewer.