diff options
Diffstat (limited to 'js/src/Ice/StringUtil.js')
-rw-r--r-- | js/src/Ice/StringUtil.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/Ice/StringUtil.js b/js/src/Ice/StringUtil.js index 2d7ae9ac64f..b9edaacd970 100644 --- a/js/src/Ice/StringUtil.js +++ b/js/src/Ice/StringUtil.js @@ -70,7 +70,7 @@ Ice.StringUtil = class if(toStringMode === Ice.ToStringMode.Compat) { // Encode UTF-8 bytes - var bytes = unescape(encodeURIComponent(s)); + const bytes = unescape(encodeURIComponent(s)); for(let i = 0; i < bytes.length; ++i) { const c = bytes.charCodeAt(i); @@ -340,7 +340,7 @@ function encodeChar(c, sb, special, toStringMode) } default: { - var s = String.fromCharCode(c); + const s = String.fromCharCode(c); if(special !== null && special.indexOf(s) !== -1) { |