From: Feross Aboukhadijeh Date: Fri, 2 Dec 2016 22:58:50 +0000 (-0800) Subject: fix comment X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=cd063d30c9876bbcc5003d83d0684c1cf92aebbd;p=buffer.git fix comment --- diff --git a/index.js b/index.js index 204cde6..151742e 100644 --- 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) {