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

    r0c6b92a r79a0317  
    44
    55var CreateDataProperty = require('./CreateDataProperty');
    6 var IsPropertyKey = require('./IsPropertyKey');
    7 var Type = require('./Type');
     6
     7var isObject = require('../helpers/isObject');
     8var isPropertyKey = require('../helpers/isPropertyKey');
    89
    910// // https://262.ecma-international.org/6.0/#sec-createdatapropertyorthrow
    1011
    1112module.exports = function CreateDataPropertyOrThrow(O, P, V) {
    12         if (Type(O) !== 'Object') {
     13        if (!isObject(O)) {
    1314                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1415        }
    15         if (!IsPropertyKey(P)) {
    16                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     16        if (!isPropertyKey(P)) {
     17                throw new $TypeError('Assertion failed: P is not a Property Key');
    1718        }
    1819        var success = CreateDataProperty(O, P, V);
Note: See TracChangeset for help on using the changeset viewer.