diff options
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 7f7e74df..4b1ae949 100644 --- a/lib/output.js +++ b/lib/output.js @@ -123,7 +123,7 @@ function OutputStream(options) { }); } : function(str) { var s = ""; - for (var i = 0, len = str.length; i < len; i++) { + for (var i = 0; i < str.length; i++) { if (is_surrogate_pair_head(str[i]) && !is_surrogate_pair_tail(str[i + 1]) || is_surrogate_pair_tail(str[i]) && !is_surrogate_pair_head(str[i - 1])) { s += "\\u" + str.charCodeAt(i).toString(16); |