summaryrefslogtreecommitdiff
path: root/lib/internal/fs/streams.js
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2018-07-25 11:35:10 -0400
committerJon Moss <me@jonathanmoss.me>2018-08-01 15:07:06 -0400
commit172b4d7cebaa3ee047dd80ea908f06dd031c39f2 (patch)
treebe6252d954d4aa0f440e20e1a864513aef9a0726 /lib/internal/fs/streams.js
parent27a5338c8a33a853a0d543cddfa7b2bab1466638 (diff)
downloadandroid-node-v8-172b4d7cebaa3ee047dd80ea908f06dd031c39f2.tar.gz
android-node-v8-172b4d7cebaa3ee047dd80ea908f06dd031c39f2.tar.bz2
android-node-v8-172b4d7cebaa3ee047dd80ea908f06dd031c39f2.zip
src,lib: rename FSReqWrap to FSReqCallback
Given that FSReqPromise does not inherit from FSReqWrap, FSReqWrap should be renamed FSReqCallback to better describe what it does. First of a few upcoming `fs` refactorings :) PR-URL: https://github.com/nodejs/node/pull/21971 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/internal/fs/streams.js')
-rw-r--r--lib/internal/fs/streams.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/fs/streams.js b/lib/internal/fs/streams.js
index 92bd9a4c15..14d1306275 100644
--- a/lib/internal/fs/streams.js
+++ b/lib/internal/fs/streams.js
@@ -1,7 +1,7 @@
'use strict';
const {
- FSReqWrap,
+ FSReqCallback,
writeBuffers
} = process.binding('fs');
const {
@@ -330,7 +330,7 @@ function writev(fd, chunks, position, callback) {
callback(err, written || 0, chunks);
}
- const req = new FSReqWrap();
+ const req = new FSReqCallback();
req.oncomplete = wrapper;
writeBuffers(fd, chunks, position, req);
}