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

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
    6 var Type = require('./Type');
     5var isObject = require('../helpers/isObject');
     6var isPropertyKey = require('../helpers/isPropertyKey');
    77
    88// https://262.ecma-international.org/6.0/#sec-deletepropertyorthrow
    99
    1010module.exports = function DeletePropertyOrThrow(O, P) {
    11         if (Type(O) !== 'Object') {
     11        if (!isObject(O)) {
    1212                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1313        }
    1414
    15         if (!IsPropertyKey(P)) {
    16                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     15        if (!isPropertyKey(P)) {
     16                throw new $TypeError('Assertion failed: P is not a Property Key');
    1717        }
    1818
Note: See TracChangeset for help on using the changeset viewer.