aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/binary/decoder.js
diff options
context:
space:
mode:
authorGravatar Paul Jolly <paul@myitcv.org.uk>2017-03-19 13:51:20 +0000
committerGravatar Paul Jolly <paul@myitcv.org.uk>2017-05-02 13:40:42 +0100
commitbcb35066411e46bde936bc4c83405b7bd280fb71 (patch)
treeea1baf74dc62e095923a7913a97ebaa21a5b0d4f /js/binary/decoder.js
parent2f4489a3e504e0a4aaffee69b551c6acc9e08374 (diff)
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.js2
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;
};