Commit 874dd59
streams: make setDefaultEncoding() throw
PR-URL: nodejs/node-v0.x-archive#8529
Fixes: f04f3a0 "streams: set default encoding for writable streams"
[[email protected]: update tests to check if throws]
Signed-off-by: Trevor Norris <[email protected]>1 parent db7df57 commit 874dd59
File tree
2 files changed
+8
-14
lines changed- lib
- test/simple
2 files changed
+8
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | 225 | | |
228 | | - | |
| 226 | + | |
| 227 | + | |
229 | 228 | | |
230 | | - | |
| 229 | + | |
231 | 230 | | |
232 | | - | |
233 | 231 | | |
234 | 232 | | |
235 | 233 | | |
| |||
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | | - | |
61 | 59 | | |
62 | | - | |
63 | | - | |
| 60 | + | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
| 63 | + | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | | - | |
73 | | - | |
| 69 | + | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
0 commit comments