aboutsummaryrefslogtreecommitdiff
path: root/js/binary/utils.js
diff options
context:
space:
mode:
authorPaul Jolly <paul@myitcv.org.uk>2017-03-19 13:51:20 +0000
committerPaul Jolly <paul@myitcv.org.uk>2017-05-02 13:40:42 +0100
commitbcb35066411e46bde936bc4c83405b7bd280fb71 (patch)
treeea1baf74dc62e095923a7913a97ebaa21a5b0d4f /js/binary/utils.js
parent2f4489a3e504e0a4aaffee69b551c6acc9e08374 (diff)
downloadprotobuf-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/utils.js')
-rw-r--r--js/binary/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/binary/utils.js b/js/binary/utils.js
index 7702020b..df16249e 100644
--- a/js/binary/utils.js
+++ b/js/binary/utils.js
@@ -613,7 +613,7 @@ jspb.utils.decimalStringToHash64 = function(dec) {
muladd(1, 1);
}
- return String.fromCharCode.apply(null, resultBytes);
+ return goog.crypt.byteArrayToString(resultBytes);
};