Commit 6c8a81d
vm: refactor to use validate function
Throwing error after checking type is repeated.
So replace it with validate function.
PR-URL: #46176
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 6e7f9fb commit 6c8a81dCopy full SHA for 6c8a81d
File tree
Expand file treeCollapse file tree
1 file changed
+7
-16
lines changedOpen diff view settings
Filter options
- lib/internal/vm
Expand file treeCollapse file tree
1 file changed
+7
-16
lines changedOpen diff view settings
Collapse file
+7-16Lines changed: 7 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
24 | 23 | |
25 | 24 | |
26 | 25 | |
| ||
40 | 39 | |
41 | 40 | |
42 | 41 | |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
| ||
275 | 275 | |
276 | 276 | |
277 | 277 | |
278 | | - |
279 | | - |
280 | | - |
281 | | - |
| 278 | + |
| 279 | + |
282 | 280 | |
283 | 281 | |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | | - |
| 282 | + |
| 283 | + |
289 | 284 | |
290 | 285 | |
291 | | - |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
| 286 | + |
| 287 | + |
297 | 288 | |
298 | 289 | |
299 | 290 | |
|
0 commit comments