From 7ab2cf78b5b87c26f4d42dcc9639fcbffe52a993 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 9 Jan 2016 15:27:22 +0100 Subject: [PATCH] fix buf introduced in PR #92 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 79c1198..d028aa5 100644 --- a/index.js +++ b/index.js @@ -191,7 +191,7 @@ function fromArrayBuffer (that, array) { that.__proto__ = Buffer.prototype } else { // Fallback: Return an object instance of the Buffer class - that = fromTypedArray(that, array) + that = fromTypedArray(that, new Uint8Array(array)) } return that } -- 2.34.1