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/unbox-primitive/index.js

    r0c6b92a r79a0317  
    22
    33var whichBoxedPrimitive = require('which-boxed-primitive');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55var hasSymbols = require('has-symbols')();
    66var hasBigInts = require('has-bigints')();
     
    1212var bigIntValueOf = hasBigInts && callBound('BigInt.prototype.valueOf');
    1313
     14/** @type {import('.')} */
    1415module.exports = function unboxPrimitive(value) {
    1516        var which = whichBoxedPrimitive(value);
     
    3132                        throw new EvalError('somehow this environment does not have Symbols, but you have a boxed Symbol value. Please report this!');
    3233                }
    33                 return symbolValueOf(value);
     34                // eslint-disable-next-line no-extra-parens
     35                return /** @type {Exclude<typeof symbolValueOf, false>} */ (symbolValueOf)(value);
    3436        }
    3537        if (which === 'BigInt') {
    36                 return bigIntValueOf(value);
     38                // eslint-disable-next-line no-extra-parens
     39                return /** @type {Exclude<typeof bigIntValueOf, false>} */ (bigIntValueOf)(value);
    3740        }
    3841        throw new RangeError('unknown boxed primitive found: ' + which);
Note: See TracChangeset for help on using the changeset viewer.