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/2017/Set.js

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var IsPropertyKey = require('./IsPropertyKey');
     5var isPropertyKey = require('../helpers/isPropertyKey');
    66var SameValue = require('./SameValue');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// IE 9 does not throw in strict mode when writability/configurability/extensibility is violated
     
    2021
    2122module.exports = function Set(O, P, V, Throw) {
    22         if (Type(O) !== 'Object') {
     23        if (!isObject(O)) {
    2324                throw new $TypeError('Assertion failed: `O` must be an Object');
    2425        }
    25         if (!IsPropertyKey(P)) {
     26        if (!isPropertyKey(P)) {
    2627                throw new $TypeError('Assertion failed: `P` must be a Property Key');
    2728        }
Note: See TracChangeset for help on using the changeset viewer.