Skip to content

Commit

Permalink
Merge pull request protocolbuffers#3043 from acozzette/javascript
Browse files Browse the repository at this point in the history
Removed mention of Buffer in byteSourceToUint8Array
  • Loading branch information
Adam Cozzette authored May 4, 2017
2 parents a64497c + f00e06c commit 4833960
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/binary/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4833960

Please sign in to comment.