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

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var $charAt = callBound('String.prototype.charAt');
    77var $stringToString = callBound('String.prototype.toString');
     
    99var CanonicalNumericIndexString = require('./CanonicalNumericIndexString');
    1010var IsInteger = require('./IsInteger');
    11 var IsPropertyKey = require('./IsPropertyKey');
    12 var Type = require('./Type');
    1311
    14 var isNegativeZero = require('is-negative-zero');
     12var isObject = require('../helpers/isObject');
     13var isPropertyKey = require('../helpers/isPropertyKey');
     14
     15var isNegativeZero = require('math-intrinsics/isNegativeZero');
    1516
    1617// https://262.ecma-international.org/8.0/#sec-stringgetownproperty
     
    1819module.exports = function StringGetOwnProperty(S, P) {
    1920        var str;
    20         if (Type(S) === 'Object') {
     21        if (isObject(S)) {
    2122                try {
    2223                        str = $stringToString(S);
     
    2627                throw new $TypeError('Assertion failed: `S` must be a boxed string object');
    2728        }
    28         if (!IsPropertyKey(P)) {
    29                 throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
     29        if (!isPropertyKey(P)) {
     30                throw new $TypeError('Assertion failed: P is not a Property Key');
    3031        }
    3132        if (typeof P !== 'string') {
Note: See TracChangeset for help on using the changeset viewer.