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/2022/OrdinaryDefineOwnProperty.js

    r0c6b92a r79a0317  
    99var IsAccessorDescriptor = require('./IsAccessorDescriptor');
    1010var IsExtensible = require('./IsExtensible');
    11 var IsPropertyKey = require('./IsPropertyKey');
     11var isPropertyKey = require('../helpers/isPropertyKey');
    1212var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    1313var SameValue = require('./SameValue');
    14 var Type = require('./Type');
    1514var ValidateAndApplyPropertyDescriptor = require('./ValidateAndApplyPropertyDescriptor');
     15
     16var isObject = require('../helpers/isObject');
    1617
    1718// https://262.ecma-international.org/6.0/#sec-ordinarydefineownproperty
    1819
    1920module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) {
    20         if (Type(O) !== 'Object') {
     21        if (!isObject(O)) {
    2122                throw new $TypeError('Assertion failed: O must be an Object');
    2223        }
    23         if (!IsPropertyKey(P)) {
     24        if (!isPropertyKey(P)) {
    2425                throw new $TypeError('Assertion failed: P must be a Property Key');
    2526        }
Note: See TracChangeset for help on using the changeset viewer.