diff options
author | Jon Moss <me@jonathanmoss.me> | 2018-07-25 11:35:10 -0400 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2018-08-01 15:07:06 -0400 |
commit | 172b4d7cebaa3ee047dd80ea908f06dd031c39f2 (patch) | |
tree | be6252d954d4aa0f440e20e1a864513aef9a0726 /test/sequential/test-async-wrap-getasyncid.js | |
parent | 27a5338c8a33a853a0d543cddfa7b2bab1466638 (diff) | |
download | android-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 'test/sequential/test-async-wrap-getasyncid.js')
-rw-r--r-- | test/sequential/test-async-wrap-getasyncid.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 2a2737497a..1f77267922 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -133,11 +133,11 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check const binding = process.binding('fs'); const path = require('path'); - const FSReqWrap = binding.FSReqWrap; - const req = new FSReqWrap(); + const FSReqCallback = binding.FSReqCallback; + const req = new FSReqCallback(); req.oncomplete = () => { }; - testInitialized(req, 'FSReqWrap'); + testInitialized(req, 'FSReqCallback'); binding.access(path.toNamespacedPath('../'), fs.F_OK, req); const StatWatcher = binding.StatWatcher; |