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/2023/SpeciesConstructor.js

    r0c6b92a r79a0317  
    77
    88var IsConstructor = require('./IsConstructor');
    9 var Type = require('./Type');
     9
     10var isObject = require('../helpers/isObject');
    1011
    1112// https://262.ecma-international.org/6.0/#sec-speciesconstructor
    1213
    1314module.exports = function SpeciesConstructor(O, defaultConstructor) {
    14         if (Type(O) !== 'Object') {
     15        if (!isObject(O)) {
    1516                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1617        }
     
    1920                return defaultConstructor;
    2021        }
    21         if (Type(C) !== 'Object') {
     22        if (!isObject(C)) {
    2223                throw new $TypeError('O.constructor is not an Object');
    2324        }
Note: See TracChangeset for help on using the changeset viewer.