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/2015/OrdinaryGetOwnProperty.js

    r0c6b92a r79a0317  
    44var $TypeError = require('es-errors/type');
    55
    6 var callBound = require('call-bind/callBound');
     6var callBound = require('call-bound');
    77
    88var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
     
    1111
    1212var IsArray = require('./IsArray');
    13 var IsPropertyKey = require('./IsPropertyKey');
     13var isPropertyKey = require('../helpers/isPropertyKey');
    1414var IsRegExp = require('./IsRegExp');
    1515var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    16 var Type = require('./Type');
     16
     17var isObject = require('../helpers/isObject');
    1718
    1819// https://262.ecma-international.org/6.0/#sec-ordinarygetownproperty
    1920
    2021module.exports = function OrdinaryGetOwnProperty(O, P) {
    21         if (Type(O) !== 'Object') {
     22        if (!isObject(O)) {
    2223                throw new $TypeError('Assertion failed: O must be an Object');
    2324        }
    24         if (!IsPropertyKey(P)) {
     25        if (!isPropertyKey(P)) {
    2526                throw new $TypeError('Assertion failed: P must be a Property Key');
    2627        }
Note: See TracChangeset for help on using the changeset viewer.