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/2016/CreateMethodProperty.js

    r0c6b92a r79a0317  
    77var FromPropertyDescriptor = require('./FromPropertyDescriptor');
    88var IsDataDescriptor = require('./IsDataDescriptor');
    9 var IsPropertyKey = require('./IsPropertyKey');
     9var isPropertyKey = require('../helpers/isPropertyKey');
    1010var SameValue = require('./SameValue');
    11 var Type = require('./Type');
     11
     12var isObject = require('../helpers/isObject');
    1213
    1314// https://262.ecma-international.org/6.0/#sec-createmethodproperty
    1415
    1516module.exports = function CreateMethodProperty(O, P, V) {
    16         if (Type(O) !== 'Object') {
     17        if (!isObject(O)) {
    1718                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1819        }
    1920
    20         if (!IsPropertyKey(P)) {
    21                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     21        if (!isPropertyKey(P)) {
     22                throw new $TypeError('Assertion failed: P is not a Property Key');
    2223        }
    2324
Note: See TracChangeset for help on using the changeset viewer.