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

Commit 4acb854

Browse files
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: #57936 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent c46b2b9 commit 4acb854

2 files changed

Lines changed: 70 additions & 5 deletions

File tree

lib/internal/main/watch_mode.js

Lines changed: 20 additions & 5 deletions

test/sequential/test-watch-mode.mjs

Lines changed: 50 additions & 0 deletions

0 commit comments

Comments
 (0)