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/OrdinaryObjectCreate.js

    r0c6b92a r79a0317  
    88
    99var IsArray = require('./IsArray');
    10 var Type = require('./Type');
    1110
    1211var forEach = require('../helpers/forEach');
     12var isObject = require('../helpers/isObject');
    1313
    1414var SLOT = require('internal-slot');
     
    1919
    2020module.exports = function OrdinaryObjectCreate(proto) {
    21         if (proto !== null && Type(proto) !== 'Object') {
     21        if (proto !== null && !isObject(proto)) {
    2222                throw new $TypeError('Assertion failed: `proto` must be null or an object');
    2323        }
Note: See TracChangeset for help on using the changeset viewer.