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

    r0c6b92a r79a0317  
    1010var LengthOfArrayLike = require('./LengthOfArrayLike');
    1111var ToString = require('./ToString');
    12 var Type = require('./Type');
    1312
    1413var forEach = require('../helpers/forEach');
     14var isObject = require('../helpers/isObject');
    1515
    1616// https://262.ecma-international.org/14.0/#sec-internalizejsonproperty
     
    1919
    2020module.exports = function InternalizeJSONProperty(holder, name, reviver) {
    21         if (Type(holder) !== 'Object') {
     21        if (!isObject(holder)) {
    2222                throw new $TypeError('Assertion failed: `holder` is not an Object');
    2323        }
     
    3131        var val = Get(holder, name); // step 1
    3232
    33         if (Type(val) === 'Object') { // step 2
     33        if (isObject(val)) { // step 2
    3434                var isArray = IsArray(val); // step 2.a
    3535                if (isArray) { // step 2.b
Note: See TracChangeset for help on using the changeset viewer.