]> zoso.dev Git - buffer.git/commitdiff
fix comment
authorFeross Aboukhadijeh <feross@feross.org>
Fri, 2 Dec 2016 22:58:50 +0000 (14:58 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Fri, 2 Dec 2016 22:58:50 +0000 (14:58 -0800)
index.js

index 204cde680c1ab528c08c02c9417c820eb659fda5..151742eb166381455e61120a306234ffe8dce52c 100644 (file)
--- a/index.js
+++ b/index.js
@@ -125,8 +125,9 @@ Buffer.from = function (value, encodingOrOffset, length) {
   return from(value, encodingOrOffset, length)
 }
 
+// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
+// https://github.com/feross/buffer/pull/148
 Buffer.prototype.__proto__ = Uint8Array.prototype
-// Assign Uint8Array as proto AFTER setting Buffer.from
 Buffer.__proto__ = Uint8Array
 
 function assertSize (size) {