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/2024/OrdinaryToPrimitive.js

    r0c6b92a r79a0317  
    66var Get = require('./Get');
    77var IsCallable = require('./IsCallable');
    8 var Type = require('./Type');
     8
     9var isObject = require('../helpers/isObject');
    910
    1011var inspect = require('object-inspect');
     
    1314
    1415module.exports = function OrdinaryToPrimitive(O, hint) {
    15         if (Type(O) !== 'Object') {
     16        if (!isObject(O)) {
    1617                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1718        }
     
    2728                if (IsCallable(method)) {
    2829                        var result = Call(method, O);
    29                         if (Type(result) !== 'Object') {
     30                        if (!isObject(result)) {
    3031                                return result;
    3132                        }
Note: See TracChangeset for help on using the changeset viewer.