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/2022/TestIntegrityLevel.js

    r0c6b92a r79a0317  
    55
    66var every = require('../helpers/every');
    7 var OwnPropertyKeys = require('../helpers/OwnPropertyKeys');
     7var OwnPropertyKeys = require('own-keys');
    88
    99var IsDataDescriptor = require('./IsDataDescriptor');
    1010var IsExtensible = require('./IsExtensible');
    1111var ToPropertyDescriptor = require('./ToPropertyDescriptor');
    12 var Type = require('./Type');
     12
     13var isObject = require('../helpers/isObject');
    1314
    1415// https://262.ecma-international.org/6.0/#sec-testintegritylevel
    1516
    1617module.exports = function TestIntegrityLevel(O, level) {
    17         if (Type(O) !== 'Object') {
     18        if (!isObject(O)) {
    1819                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1920        }
     
    2223        }
    2324        var status = IsExtensible(O);
    24         if (status) {
     25        if (status || !$gOPD) {
    2526                return false;
    2627        }
Note: See TracChangeset for help on using the changeset viewer.