diff options
author | Adam Cozzette <acozzette@gmail.com> | 2017-05-04 12:21:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 12:21:14 -0700 |
commit | 483396068d7788efca4d51584d160dc4da28c99d (patch) | |
tree | 35ad45b9f37835e5f4bfac749c2f191d13836d0a | |
parent | a64497c709aa8a08f146334afdadf430a1a5c114 (diff) | |
parent | f00e06c95bc117fb2ed0ca56c96041c93039f1fe (diff) | |
download | protobuf-483396068d7788efca4d51584d160dc4da28c99d.tar.gz protobuf-483396068d7788efca4d51584d160dc4da28c99d.tar.bz2 protobuf-483396068d7788efca4d51584d160dc4da28c99d.zip |
Merge pull request #3043 from acozzette/javascript
Removed mention of Buffer in byteSourceToUint8Array
-rw-r--r-- | js/binary/utils.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/js/binary/utils.js b/js/binary/utils.js index df16249e..58f11b54 100644 --- a/js/binary/utils.js +++ b/js/binary/utils.js @@ -970,10 +970,6 @@ jspb.utils.byteSourceToUint8Array = function(data) { return /** @type {!Uint8Array} */(new Uint8Array(data)); } - if (data.constructor === Buffer) { - return /** @type {!Uint8Array} */(new Uint8Array(data)); - } - if (data.constructor === Array) { data = /** @type {!Array.<number>} */(data); return /** @type {!Uint8Array} */(new Uint8Array(data)); |