diff options
author | Paul Jolly <paul@myitcv.org.uk> | 2017-03-19 13:51:20 +0000 |
---|---|---|
committer | Paul Jolly <paul@myitcv.org.uk> | 2017-05-02 13:40:42 +0100 |
commit | bcb35066411e46bde936bc4c83405b7bd280fb71 (patch) | |
tree | ea1baf74dc62e095923a7913a97ebaa21a5b0d4f /js/binary/decoder.js | |
parent | 2f4489a3e504e0a4aaffee69b551c6acc9e08374 (diff) | |
download | protobuf-bcb35066411e46bde936bc4c83405b7bd280fb71.tar.gz protobuf-bcb35066411e46bde936bc4c83405b7bd280fb71.tar.bz2 protobuf-bcb35066411e46bde936bc4c83405b7bd280fb71.zip |
Fix #1562 by using goog.crypt.byteArrayToString instead of String.fromCharCode.apply
Diffstat (limited to 'js/binary/decoder.js')
-rw-r--r-- | js/binary/decoder.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/binary/decoder.js b/js/binary/decoder.js index ad9cb01b..6db28e7c 100644 --- a/js/binary/decoder.js +++ b/js/binary/decoder.js @@ -994,7 +994,7 @@ jspb.BinaryDecoder.prototype.readString = function(length) { codeUnits.length = 0; } } - result += String.fromCharCode.apply(null, codeUnits); + result += goog.crypt.byteArrayToString(codeUnits); this.cursor_ = cursor; return result; }; |