aboutsummaryrefslogtreecommitdiff
path: root/js/binary/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/binary/utils.js')
-rw-r--r--js/binary/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/binary/utils.js b/js/binary/utils.js
index bbf99cdf..58f11b54 100644
--- a/js/binary/utils.js
+++ b/js/binary/utils.js
@@ -430,7 +430,7 @@ jspb.utils.joinHash64 = function(bitsLow, bitsHigh) {
/**
* Individual digits for number->string conversion.
- * @const {!Array.<number>}
+ * @const {!Array.<string>}
*/
jspb.utils.DIGITS = [
'0', '1', '2', '3', '4', '5', '6', '7',
@@ -613,7 +613,7 @@ jspb.utils.decimalStringToHash64 = function(dec) {
muladd(1, 1);
}
- return String.fromCharCode.apply(null, resultBytes);
+ return goog.crypt.byteArrayToString(resultBytes);
};