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

    r0c6b92a r79a0317  
    55var $TypeError = require('es-errors/type');
    66
    7 var $hasInstance = GetIntrinsic('Symbol.hasInstance', true);
     7var $hasInstance = GetIntrinsic('%Symbol.hasInstance%', true);
    88
    99var Call = require('./Call');
     
    1212var OrdinaryHasInstance = require('./OrdinaryHasInstance');
    1313var ToBoolean = require('./ToBoolean');
    14 var Type = require('./Type');
     14
     15var isObject = require('../helpers/isObject');
    1516
    1617// https://262.ecma-international.org/6.0/#sec-instanceofoperator
    1718
    1819module.exports = function InstanceofOperator(O, C) {
    19         if (Type(O) !== 'Object') {
     20        if (!isObject(O)) {
    2021                throw new $TypeError('Assertion failed: Type(O) is not Object');
    2122        }
Note: See TracChangeset for help on using the changeset viewer.