Skip to content

Commit 330e24b

Browse files
committed
fixup! src: move fs state out of Environment
1 parent 54324b6 commit 330e24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ static void ReadBuffers(const FunctionCallbackInfo<Value>& args) {
20152015
iovs[i] = uv_buf_init(Buffer::Data(buffer), Buffer::Length(buffer));
20162016
}
20172017

2018-
FSReqBase* req_wrap_async = GetReqWrap(env, args[3]);
2018+
FSReqBase* req_wrap_async = GetReqWrap(args, 3);
20192019
if (req_wrap_async != nullptr) { // readBuffers(fd, buffers, pos, req)
20202020
AsyncCall(env, req_wrap_async, args, "read", UTF8, AfterInteger,
20212021
uv_fs_read, fd, *iovs, iovs.length(), pos);

0 commit comments

Comments
 (0)