Skip to content

Commit 8a4dc73

Browse files
committed
Make sure toArray returns an array
1 parent 459c1c8 commit 8a4dc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/Buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ exports.writeStringImpl = function (enc) {
8686

8787
exports.toArray = function (buff) {
8888
return function() {
89-
return buff.toJSON();
89+
return buff.toJSON().data;
9090
};
9191
};
9292

0 commit comments

Comments
 (0)