Skip to content

Commit d00d836

Browse files
committed
Merge pull request #4 from purescript-node/fix-ffi-decls
Fix FFI code in Node.Buffer
2 parents 2a01375 + 31254f5 commit d00d836

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/Node/Buffer.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ exports.writeImpl = function (ty) {
4949
return function (value) {
5050
return function (offset) {
5151
return function (buf) {
52-
buf['write' + ty](value, offset);
53-
return {};
52+
return function() {
53+
buf['write' + ty](value, offset);
54+
return {};
55+
}
5456
};
5557
};
5658
};
@@ -61,7 +63,9 @@ exports.writeStringImpl = function (enc) {
6163
return function (length) {
6264
return function (value) {
6365
return function (buff) {
64-
return buff.write(value, offset, length, encoding);
66+
return function() {
67+
return buff.write(value, offset, length, encoding);
68+
}
6569
};
6670
};
6771
};
@@ -125,8 +129,10 @@ exports.fill = function (buff) {
125129
return function (octet) {
126130
return function (start) {
127131
return function (end) {
128-
buff.fill(octet, start, end);
129-
return {};
132+
return function() {
133+
buff.fill(octet, start, end);
134+
return {};
135+
}
130136
};
131137
};
132138
};

0 commit comments

Comments
 (0)