Commit b89d817
errors: minor (SystemError) refactoring
This removes the former default values and the spread arguments
usage. That was unnecessary and now it does only what is necessary.
The `message` function got renamed to `getMessage` to outline that
it is actually a function and a helper function was inlined into
the SystemError constructor as it was only used there.
PR-URL: #20337
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 58be6ef commit b89d817Copy full SHA for b89d817
File tree
Expand file treeCollapse file tree
4 files changed
+46
-57
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
4 files changed
+46
-57
lines changedOpen diff view settings
Collapse file
+16-18Lines changed: 16 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | 82 | |
93 | 83 | |
94 | 84 | |
| ||
98 | 88 | |
99 | 89 | |
100 | 90 | |
101 | | - |
102 | | - |
103 | | - |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
104 | 102 | |
105 | 103 | |
106 | 104 | |
| ||
183 | 181 | |
184 | 182 | |
185 | 183 | |
186 | | - |
187 | | - |
| 184 | + |
| 185 | + |
188 | 186 | |
189 | 187 | |
190 | 188 | |
191 | 189 | |
192 | 190 | |
193 | 191 | |
194 | 192 | |
195 | | - |
| 193 | + |
196 | 194 | |
197 | 195 | |
198 | 196 | |
| ||
485 | 483 | |
486 | 484 | |
487 | 485 | |
488 | | - |
| 486 | + |
489 | 487 | |
490 | 488 | |
491 | 489 | |
| ||
694 | 692 | |
695 | 693 | |
696 | 694 | |
697 | | - |
| 695 | + |
698 | 696 | |
699 | 697 | |
700 | 698 | |
|
Collapse file
test/parallel/test-buffer-fill.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-fill.js+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
| 5 | + |
6 | 6 | |
7 | 7 | |
8 | 8 | |
| ||
214 | 214 | |
215 | 215 | |
216 | 216 | |
217 | | - |
218 | 217 | |
219 | 218 | |
220 | 219 | |
221 | 220 | |
222 | 221 | |
223 | | - |
224 | 222 | |
225 | 223 | |
226 | 224 | |
| ||
237 | 235 | |
238 | 236 | |
239 | 237 | |
| 238 | + |
240 | 239 | |
241 | | - |
| 240 | + |
242 | 241 | |
243 | 242 | |
244 | 243 | |
| ||
266 | 265 | |
267 | 266 | |
268 | 267 | |
269 | | - |
270 | 268 | |
271 | 269 | |
272 | 270 | |
|
Collapse file
test/parallel/test-errors-systemerror.js
Copy file name to clipboardExpand all lines: test/parallel/test-errors-systemerror.js+3-5Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | | - |
8 | | - |
| 6 | + |
9 | 7 | |
10 | 8 | |
11 | | - |
| 9 | + |
12 | 10 | |
13 | 11 | |
14 | 12 | |
15 | 13 | |
16 | 14 | |
17 | 15 | |
18 | 16 | |
19 | | - |
| 17 | + |
20 | 18 | |
21 | 19 | |
22 | 20 | |
|
Collapse file
test/parallel/test-internal-errors.js
Copy file name to clipboardExpand all lines: test/parallel/test-internal-errors.js+24-29Lines changed: 24 additions & 29 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
96 | | - |
| 96 | + |
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | | - |
| 100 | + |
101 | 101 | |
102 | | - |
| 102 | + |
103 | 103 | |
104 | | - |
| 104 | + |
| 105 | + |
105 | 106 | |
106 | | - |
| 107 | + |
| 108 | + |
107 | 109 | |
108 | 110 | |
109 | | - |
| 111 | + |
110 | 112 | |
111 | 113 | |
112 | 114 | |
113 | 115 | |
114 | 116 | |
115 | 117 | |
116 | 118 | |
117 | | - |
| 119 | + |
118 | 120 | |
119 | | - |
| 121 | + |
120 | 122 | |
121 | | - |
| 123 | + |
122 | 124 | |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | 125 | |
131 | 126 | |
132 | 127 | |
133 | | - |
| 128 | + |
134 | 129 | |
135 | 130 | |
136 | 131 | |
137 | 132 | |
138 | | - |
| 133 | + |
139 | 134 | |
140 | 135 | |
141 | 136 | |
142 | | - |
| 137 | + |
143 | 138 | |
144 | 139 | |
145 | 140 | |
146 | 141 | |
147 | | - |
| 142 | + |
148 | 143 | |
149 | 144 | |
150 | 145 | |
151 | 146 | |
152 | | - |
| 147 | + |
153 | 148 | |
154 | 149 | |
155 | 150 | |
156 | 151 | |
157 | | - |
| 152 | + |
158 | 153 | |
159 | 154 | |
160 | 155 | |
161 | 156 | |
162 | | - |
| 157 | + |
163 | 158 | |
164 | 159 | |
165 | 160 | |
166 | 161 | |
167 | | - |
| 162 | + |
168 | 163 | |
169 | 164 | |
170 | 165 | |
171 | 166 | |
172 | 167 | |
173 | | - |
| 168 | + |
174 | 169 | |
175 | 170 | |
176 | 171 | |
177 | 172 | |
178 | | - |
| 173 | + |
179 | 174 | |
180 | 175 | |
181 | 176 | |
182 | 177 | |
183 | | - |
| 178 | + |
184 | 179 | |
185 | 180 | |
186 | | - |
| 181 | + |
187 | 182 | |
188 | 183 | |
189 | | - |
| 184 | + |
190 | 185 | |
191 | 186 | |
192 | 187 | |
|
0 commit comments