소스 검색

Merge pull request #3043 from acozzette/javascript

Removed mention of Buffer in byteSourceToUint8Array
Adam Cozzette 8 년 전
부모
커밋
483396068d
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      js/binary/utils.js

+ 0 - 4
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));