Skip to content

Commit d098fd9

Browse files
committed
Fix argument order in FFI code for fill
1 parent bdf5951 commit d098fd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Node/Buffer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ exports.copy = function (srcStart) {
151151
};
152152
};
153153

154-
exports.fill = function (buff) {
155-
return function (octet) {
156-
return function (start) {
157-
return function (end) {
154+
exports.fill = function (octet) {
155+
return function (start) {
156+
return function (end) {
157+
return function (buf) {
158158
return function() {
159-
buff.fill(octet, start, end);
159+
buf.fill(octet, start, end);
160160
return {};
161-
}
161+
};
162162
};
163163
};
164164
};

0 commit comments

Comments
 (0)