We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0012749 commit 9e52476Copy full SHA for 9e52476
1 file changed
src/Node/Buffer.js
@@ -86,7 +86,8 @@ exports.writeStringImpl = function (enc) {
86
87
exports.toArray = function (buff) {
88
return function() {
89
- return buff.toJSON().data;
+ var json = buff.toJSON()
90
+ return json.data || json;
91
};
92
93
0 commit comments