Permalink
Please
sign in to comment.
Browse files
src: use consistent names for JSStream
Its confusing to call a js class with a handle a "Wrap", usually it's the C++ handle that is called a Wrap (tcp_wrap, tls_wrap, ...). Its derived from Socket, and makes a JS stream look like a Socket, so call it that. Also, remove use of lib/_stream_wrap.js so it can be deprecated some time. PR-URL: #25153 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
- Loading branch information...
Showing
with
28 additions
and 22 deletions.
- +1 −1 lib/_stream_wrap.js
- +5 −3 lib/_tls_wrap.js
- +2 −2 lib/internal/http2/core.js
- +8 −7 lib/internal/{wrap_js_stream.js → js_stream_socket.js}
- +1 −1 node.gyp
- +2 −2 test/parallel/test-stream-wrap-drain.js
- +2 −1 test/parallel/test-stream-wrap-encoding.js
- +1 −1 test/parallel/test-stream-wrap.js
- +2 −1 test/parallel/test-wrap-js-stream-destroy.js
- +2 −1 test/parallel/test-wrap-js-stream-duplex.js
- +1 −1 test/parallel/test-wrap-js-stream-exceptions.js
- +1 −1 test/parallel/test-wrap-js-stream-read-stop.js
| @@ -1,3 +1,3 @@ | |||
| 'use strict'; | |||
|
|
|||
| module.exports = require('internal/wrap_js_stream'); | |||
| module.exports = require('internal/js_stream_socket'); | |||
0 comments on commit
bc66356