aboutsummaryrefslogtreecommitdiff
path: root/js/binary/decoder.js
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@gmail.com>2017-05-02 16:57:34 -0700
committerGitHub <noreply@github.com>2017-05-02 16:57:34 -0700
commita64497c709aa8a08f146334afdadf430a1a5c114 (patch)
treeea1baf74dc62e095923a7913a97ebaa21a5b0d4f /js/binary/decoder.js
parent2f4489a3e504e0a4aaffee69b551c6acc9e08374 (diff)
parentbcb35066411e46bde936bc4c83405b7bd280fb71 (diff)
downloadprotobuf-a64497c709aa8a08f146334afdadf430a1a5c114.tar.gz
protobuf-a64497c709aa8a08f146334afdadf430a1a5c114.tar.bz2
protobuf-a64497c709aa8a08f146334afdadf430a1a5c114.zip
Merge pull request #2873 from myitcv/fix_1562
Javascript: use 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;
};