Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2019/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'); … … 34 34 var product = '"'; 35 35 if (value) { 36 forEach($strSplit(value ), function (C) {36 forEach($strSplit(value, ''), function (C) { 37 37 if (hasOwn(escapes, C)) { 38 38 product += escapes[C]; 39 39 } else { 40 40 var cCharCode = $charCodeAt(C, 0); 41 if (cCharCode < 0x20 || isLeadingSurrogate( C) || isTrailingSurrogate(C)) {41 if (cCharCode < 0x20 || isLeadingSurrogate(cCharCode) || isTrailingSurrogate(cCharCode)) { 42 42 product += UnicodeEscape(C); 43 43 } else {
Note:
See TracChangeset
for help on using the changeset viewer.