watch: fix watch args not being properly filtered · nodejs/node@92304a5 · GitHub
Skip to content

Commit 92304a5

Browse files
dario-piotrowiczaduh95
authored andcommitted
watch: fix watch args not being properly filtered
currently when --watch is used, the argv arguments that the target script receives are filtered so that they don't include watch related arguments, however the current filtering logic is incorrect and it causes some watch values to incorrectly pass the filtering, the changes here address such issue PR-URL: #58279 Fixes: #57124 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a5a686a commit 92304a5

2 files changed

Lines changed: 117 additions & 5 deletions

File tree

lib/internal/main/watch_mode.js

Lines changed: 20 additions & 5 deletions
Lines changed: 97 additions & 0 deletions

0 commit comments

Comments
 (0)