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

    r0c6b92a r79a0317  
    55var Get = require('./Get');
    66var IsCallable = require('./IsCallable');
    7 var Type = require('./Type');
     7
     8var isObject = require('../helpers/isObject');
    89
    910// https://262.ecma-international.org/6.0/#sec-ordinaryhasinstance
     
    1314                return false;
    1415        }
    15         if (Type(O) !== 'Object') {
     16        if (!isObject(O)) {
    1617                return false;
    1718        }
    1819        var P = Get(C, 'prototype');
    19         if (Type(P) !== 'Object') {
     20        if (!isObject(P)) {
    2021                throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.');
    2122        }
Note: See TracChangeset for help on using the changeset viewer.