Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2024/QuoteJSONString.js
r0c6b92a r79a0317 3 3 var $TypeError = require('es-errors/type'); 4 4 5 var callBound = require('call-b ind/callBound');5 var callBound = require('call-bound'); 6 6 var forEach = require('../helpers/forEach'); 7 7 var isLeadingSurrogate = require('../helpers/isLeadingSurrogate'); … … 9 9 10 10 var $charCodeAt = callBound('String.prototype.charCodeAt'); 11 var $strSplit = callBound('String.prototype.split'); 11 12 12 13 var StringToCodePoints = require('./StringToCodePoints'); … … 34 35 var product = '"'; 35 36 if (value) { 36 forEach( StringToCodePoints(value), function (C) {37 forEach($strSplit(StringToCodePoints(value), ''), function (C) { 37 38 if (hasOwn(escapes, C)) { 38 39 product += escapes[C]; 39 40 } else { 40 41 var cCharCode = $charCodeAt(C, 0); 41 if (cCharCode < 0x20 || isLeadingSurrogate( C) || isTrailingSurrogate(C)) {42 if (cCharCode < 0x20 || isLeadingSurrogate(cCharCode) || isTrailingSurrogate(cCharCode)) { 42 43 product += UnicodeEscape(C); 43 44 } else {
Note:
See TracChangeset
for help on using the changeset viewer.