File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed
Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -200,25 +200,6 @@ const headRegexp = /(^module.exports = \w+;?)/m
200200 / ^ f u n c t i o n o n C o r k e d F i n i s h [ \s \S ] + ?\r ? \n \} / m,
201201 ''
202202 ]
203- , addConstructors = [
204- headRegexp ,
205- `$1\n\n
206- // It seems a linked list but it is not
207- // there will be only 2 of these for each stream
208- function CorkedRequest(state) {
209- this.next = null;
210- this.entry = null;
211- this.finish = onCorkedFinish.bind(undefined, this, state);
212- }\n\n`
213- ]
214- , useWriteReq = [
215- / s t a t e \. l a s t B u f f e r e d R e q u e s t = \{ .+ ?\} / g,
216- `state.lastBufferedRequest = new WriteReq(chunk, encoding, cb)`
217- ]
218- , useCorkedRequest = [
219- / v a r c o r k R e q = [ \s \S ] + ?( .+ ?) \. c o r k e d R e q u e s t s F r e e = c o r k R e q / g,
220- `$1.corkedRequestsFree = new CorkedRequest($1)`
221- ]
222203
223204module . exports [ '_stream_duplex.js' ] = [
224205 requireReplacement
@@ -300,9 +281,6 @@ module.exports['_stream_writable.js'] = [
300281 , removeOnWriteBind
301282 , removeCorkedFinishBind
302283 , removeOnCorkedFinish
303- , addConstructors
304- , useWriteReq
305- , useCorkedRequest
306284]
307285module . exports [ 'internal/streams/BufferList.js' ] = [
308286 bufferShimFix
Original file line number Diff line number Diff line change 66
77module . exports = Writable ;
88
9- // It seems a linked list but it is not
10- // there will be only 2 of these for each stream
11- function CorkedRequest ( state ) {
12- this . next = null ;
13- this . entry = null ;
14- this . finish = onCorkedFinish . bind ( undefined , this , state ) ;
15- }
16-
179/*<replacement>*/
1810var processNextTick = require ( 'process-nextick-args' ) ;
1911/*</replacement>*/
@@ -556,4 +548,4 @@ function CorkedRequest(state) {
556548 state . corkedRequestsFree = _this ;
557549 }
558550 } ;
559- }
551+ }
You can’t perform that action at this time.
0 commit comments