Commit 457fb55
watch: fix --env-file-if-exists crashing on linux if the file is missing
PR-URL: #61870
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>1 parent 3af44ee commit 457fb55Copy full SHA for 457fb55
8 files changed
+84-14Lines changed: 84 additions & 14 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- doc/api
- lib
- internal
- fs
- main
- watch_mode
- test
- parallel
- sequential
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5059 | 5059 | |
5060 | 5060 | |
5061 | 5061 | |
| 5062 | + |
| 5063 | + |
| 5064 | + |
5062 | 5065 | |
5063 | 5066 | |
5064 | 5067 | |
| ||
5087 | 5090 | |
5088 | 5091 | |
5089 | 5092 | |
| 5093 | + |
| 5094 | + |
5090 | 5095 | |
5091 | 5096 | |
5092 | 5097 | |
|
Collapse file
+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2496 | 2496 | |
2497 | 2497 | |
2498 | 2498 | |
| 2499 | + |
2499 | 2500 | |
2500 | 2501 | |
2501 | 2502 | |
| ||
2514 | 2515 | |
2515 | 2516 | |
2516 | 2517 | |
| 2518 | + |
2517 | 2519 | |
2518 | 2520 | |
2519 | 2521 | |
| ||
2531 | 2533 | |
2532 | 2534 | |
2533 | 2535 | |
2534 | | - |
| 2536 | + |
| 2537 | + |
2535 | 2538 | |
2536 | 2539 | |
2537 | 2540 | |
|
Collapse file
lib/internal/fs/recursive_watch.js
Copy file name to clipboardExpand all lines: lib/internal/fs/recursive_watch.js+9-2Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
| 55 | + |
55 | 56 | |
56 | 57 | |
57 | 58 | |
| ||
66 | 67 | |
67 | 68 | |
68 | 69 | |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
69 | 76 | |
70 | 77 | |
71 | 78 | |
| ||
76 | 83 | |
77 | 84 | |
78 | 85 | |
79 | | - |
| 86 | + |
80 | 87 | |
81 | 88 | |
82 | 89 | |
| ||
222 | 229 | |
223 | 230 | |
224 | 231 | |
225 | | - |
| 232 | + |
226 | 233 | |
227 | 234 | |
228 | 235 | |
|
Collapse file
lib/internal/fs/watchers.js
Copy file name to clipboardExpand all lines: lib/internal/fs/watchers.js+7-2Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
| ||
293 | 293 | |
294 | 294 | |
295 | 295 | |
296 | | - |
| 296 | + |
| 297 | + |
297 | 298 | |
298 | 299 | |
299 | 300 | |
| ||
313 | 314 | |
314 | 315 | |
315 | 316 | |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
316 | 321 | |
317 | 322 | |
318 | 323 | |
|
Collapse file
lib/internal/main/watch_mode.js
Copy file name to clipboardExpand all lines: lib/internal/main/watch_mode.js+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
| 37 | + |
| 38 | + |
41 | 39 | |
42 | 40 | |
43 | 41 | |
| ||
105 | 103 | |
106 | 104 | |
107 | 105 | |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
108 | 110 | |
109 | 111 | |
110 | 112 | |
| ||
160 | 162 | |
161 | 163 | |
162 | 164 | |
| 165 | + |
163 | 166 | |
164 | 167 | |
165 | 168 | |
| ||
198 | 201 | |
199 | 202 | |
200 | 203 | |
| 204 | + |
201 | 205 | |
202 | 206 | |
Collapse file
lib/internal/watch_mode/files_watcher.js
Copy file name to clipboardExpand all lines: lib/internal/watch_mode/files_watcher.js+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
| 117 | + |
| 118 | + |
| 119 | + |
118 | 120 | |
119 | 121 | |
120 | 122 | |
| ||
126 | 128 | |
127 | 129 | |
128 | 130 | |
129 | | - |
| 131 | + |
130 | 132 | |
131 | 133 | |
132 | | - |
| 134 | + |
133 | 135 | |
134 | 136 | |
135 | 137 | |
136 | | - |
| 138 | + |
137 | 139 | |
138 | 140 | |
139 | 141 | |
|
Collapse file
test/parallel/test-fs-watch-enoent.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-watch-enoent.js+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
46 | 69 | |
47 | 70 | |
48 | 71 | |
|
Collapse file
test/sequential/test-watch-mode.mjs
Copy file name to clipboardExpand all lines: test/sequential/test-watch-mode.mjs+21Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
277 | 277 | |
278 | 278 | |
279 | 279 | |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
280 | 301 | |
281 | 302 | |
282 | 303 | |
|
0 commit comments