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/es-abstract/2018/thisSymbolValue.js

    r0c6b92a r79a0317  
    22
    33var $SyntaxError = require('es-errors/syntax');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55
    66var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true);
     
    99
    1010module.exports = function thisSymbolValue(value) {
     11        if (typeof value === 'symbol') {
     12                return value;
     13        }
     14
    1115        if (!$SymbolValueOf) {
    1216                throw new $SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object');
    1317        }
    14         if (typeof value === 'symbol') {
    15                 return value;
    16         }
     18
    1719        return $SymbolValueOf(value);
    1820};
Note: See TracChangeset for help on using the changeset viewer.