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

    r0c6b92a r79a0317  
    33var $TypeError = require('es-errors/type');
    44
    5 var callBound = require('call-bind/callBound');
     5var callBound = require('call-bound');
    66var forEach = require('../helpers/forEach');
    77var isLeadingSurrogate = require('../helpers/isLeadingSurrogate');
     
    99
    1010var $charCodeAt = callBound('String.prototype.charCodeAt');
     11var $strSplit = callBound('String.prototype.split');
    1112
    1213var StringToCodePoints = require('./StringToCodePoints');
     
    3435        var product = '"';
    3536        if (value) {
    36                 forEach(StringToCodePoints(value), function (C) {
     37                forEach($strSplit(StringToCodePoints(value), ''), function (C) {
    3738                        if (hasOwn(escapes, C)) {
    3839                                product += escapes[C];
    3940                        } else {
    4041                                var cCharCode = $charCodeAt(C, 0);
    41                                 if (cCharCode < 0x20 || isLeadingSurrogate(C) || isTrailingSurrogate(C)) {
     42                                if (cCharCode < 0x20 || isLeadingSurrogate(cCharCode) || isTrailingSurrogate(cCharCode)) {
    4243                                        product += UnicodeEscape(C);
    4344                                } else {
Note: See TracChangeset for help on using the changeset viewer.