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/2023/InstallErrorCause.js

    r0c6b92a r79a0317  
    66var Get = require('./Get');
    77var HasProperty = require('./HasProperty');
    8 var Type = require('./Type');
     8
     9var isObject = require('../helpers/isObject');
    910
    1011// https://262.ecma-international.org/13.0/#sec-installerrorcause
    1112
    1213module.exports = function InstallErrorCause(O, options) {
    13         if (Type(O) !== 'Object') {
     14        if (!isObject(O)) {
    1415                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1516        }
    1617
    17         if (Type(options) === 'Object' && HasProperty(options, 'cause')) {
     18        if (isObject(options) && HasProperty(options, 'cause')) {
    1819                var cause = Get(options, 'cause');
    1920                CreateNonEnumerableDataPropertyOrThrow(O, 'cause', cause);
Note: See TracChangeset for help on using the changeset viewer.