Commit edb9846
stream: remove usage of *State.highWaterMark
Replaced _readableState.highWaterMark with a .readableHighWaterMark
getter and _writableState.highWaterMark with a .writableHighWaterMark
getter.
The getters are non-enumerable because they break some prototype
manipulation that happen in the ecosystem.
Ref: #445.
PR-URL: #12860
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent f321921 commit edb9846Copy full SHA for edb9846
File tree
Expand file treeCollapse file tree
11 files changed
+73
-17
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/parallel
Expand file treeCollapse file tree
11 files changed
+73
-17
lines changedOpen diff view settings
Collapse file
+16Lines changed: 16 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
437 | 437 | |
438 | 438 | |
439 | 439 | |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
440 | 448 | |
441 | 449 | |
442 | 450 | |
| ||
879 | 887 | |
880 | 888 | |
881 | 889 | |
| 890 | + |
| 891 | + |
| 892 | + |
| 893 | + |
| 894 | + |
| 895 | + |
| 896 | + |
| 897 | + |
882 | 898 | |
883 | 899 | |
884 | 900 | |
|
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
373 | 373 | |
374 | 374 | |
375 | 375 | |
376 | | - |
| 376 | + |
377 | 377 | |
378 | 378 | |
379 | 379 | |
380 | 380 | |
381 | 381 | |
382 | | - |
| 382 | + |
383 | 383 | |
384 | 384 | |
385 | 385 | |
| ||
569 | 569 | |
570 | 570 | |
571 | 571 | |
572 | | - |
| 572 | + |
573 | 573 | |
574 | 574 | |
575 | 575 | |
|
Collapse file
+18-5Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
42 | 45 | |
43 | 46 | |
44 | 47 | |
| ||
61 | 64 | |
62 | 65 | |
63 | 66 | |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
64 | 77 | |
65 | 78 | |
66 | 79 | |
|
Collapse file
+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
916 | 916 | |
917 | 917 | |
918 | 918 | |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
919 | 928 | |
920 | 929 | |
921 | 930 | |
|
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
334 | 334 | |
335 | 335 | |
336 | 336 | |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
337 | 347 | |
338 | 348 | |
339 | 349 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2072 | 2072 | |
2073 | 2073 | |
2074 | 2074 | |
2075 | | - |
| 2075 | + |
2076 | 2076 | |
2077 | 2077 | |
2078 | 2078 | |
|
Collapse file
test/parallel/test-http-pipeline-regr-3508.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-pipeline-regr-3508.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
34 | 34 | |
35 | 35 | |
36 | 36 | |
|
Collapse file
test/parallel/test-stream-big-packet.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-big-packet.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
|
Collapse file
test/parallel/test-stream-readable-flow-recursion.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-readable-flow-recursion.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
68 | 68 | |
69 | 69 | |
70 | 70 | |
71 | | - |
| 71 | + |
72 | 72 | |
73 | 73 | |
74 | 74 | |
|
Collapse file
test/parallel/test-stream-transform-split-objectmode.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-transform-split-objectmode.js+12-4Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
33 | | - |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
34 | 38 | |
35 | 39 | |
36 | 40 | |
| ||
53 | 57 | |
54 | 58 | |
55 | 59 | |
56 | | - |
57 | | - |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
58 | 66 | |
59 | 67 | |
60 | 68 | |
|
0 commit comments