diff options
Diffstat (limited to 'js/binary/decoder.js')
-rw-r--r-- | js/binary/decoder.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/binary/decoder.js b/js/binary/decoder.js index e4fb9148..040cf715 100644 --- a/js/binary/decoder.js +++ b/js/binary/decoder.js @@ -941,7 +941,8 @@ jspb.BinaryDecoder.prototype.readString = function(length) { codeUnits.push(high, low) } } - + // String.fromCharCode.apply is faster than manually appending characters on + // Chrome 25+, and generates no additional cons string garbage. var result = String.fromCharCode.apply(null, codeUnits); this.cursor_ = cursor; return result; |