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/2021/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/11.0/#sec-internalizejsonproperty
    1717
    1818module.exports = function InternalizeJSONProperty(holder, name, reviver) {
    19         if (Type(holder) !== 'Object') {
     19        if (!isObject(holder)) {
    2020                throw new $TypeError('Assertion failed: `holder` is not an Object');
    2121        }
     
    2929        var val = Get(holder, name); // step 1
    3030
    31         if (Type(val) === 'Object') { // step 2
     31        if (isObject(val)) { // step 2
    3232                var isArray = IsArray(val); // step 2.a
    3333                if (isArray) { // step 2.b
Note: See TracChangeset for help on using the changeset viewer.