From cd063d30c9876bbcc5003d83d0684c1cf92aebbd Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 2 Dec 2016 14:58:50 -0800 Subject: [PATCH] fix comment --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.34.1