Commit 48339606 authored by Adam Cozzette's avatar Adam Cozzette Committed by GitHub

Merge pull request #3043 from acozzette/javascript

Removed mention of Buffer in byteSourceToUint8Array
parents a64497c7 f00e06c9
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment