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/2020/HasOwnProperty.js

    r0c6b92a r79a0317  
    55var hasOwn = require('hasown');
    66
    7 var IsPropertyKey = require('./IsPropertyKey');
    8 var Type = require('./Type');
     7var isObject = require('../helpers/isObject');
     8var isPropertyKey = require('../helpers/isPropertyKey');
    99
    1010// https://262.ecma-international.org/6.0/#sec-hasownproperty
    1111
    1212module.exports = function HasOwnProperty(O, P) {
    13         if (Type(O) !== 'Object') {
     13        if (!isObject(O)) {
    1414                throw new $TypeError('Assertion failed: `O` must be an Object');
    1515        }
    16         if (!IsPropertyKey(P)) {
     16        if (!isPropertyKey(P)) {
    1717                throw new $TypeError('Assertion failed: `P` must be a Property Key');
    1818        }
Note: See TracChangeset for help on using the changeset viewer.