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/2024/Get.js

    r0c6b92a r79a0317  
    55var inspect = require('object-inspect');
    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-get-o-p
     
    1212module.exports = function Get(O, P) {
    1313        // 7.3.1.1
    14         if (Type(O) !== 'Object') {
     14        if (!isObject(O)) {
    1515                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1616        }
    1717        // 7.3.1.2
    18         if (!IsPropertyKey(P)) {
    19                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P));
     18        if (!isPropertyKey(P)) {
     19                throw new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));
    2020        }
    2121        // 7.3.1.3
Note: See TracChangeset for help on using the changeset viewer.