aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/binary/utils.js
diff options
context:
space:
mode:
authorGravatar Adam Cozzette <acozzette@gmail.com>2017-05-02 16:57:34 -0700
committerGravatar GitHub <noreply@github.com>2017-05-02 16:57:34 -0700
commita64497c709aa8a08f146334afdadf430a1a5c114 (patch)
treeea1baf74dc62e095923a7913a97ebaa21a5b0d4f /js/binary/utils.js
parent2f4489a3e504e0a4aaffee69b551c6acc9e08374 (diff)
parentbcb35066411e46bde936bc4c83405b7bd280fb71 (diff)
Merge pull request #2873 from myitcv/fix_1562
Javascript: use 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);
};