| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Can you add tests please
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #60814 +/- ##
==========================================
- Coverage 88.56% 88.53% -0.03%
==========================================
Files 703 703
Lines 208254 208425 +171
Branches 40156 40197 +41
==========================================
+ Hits 184430 184537 +107
- Misses 15828 15893 +65
+ Partials 7996 7995 -1
... and 68 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for this!
Sorry, something went wrong.
|
Thanks for the guidance, appreciate it! |
Sorry, something went wrong.
|
Nice catch and change. I like checking the internal options instead of doing a pseudo parse of execArgv. |
Sorry, something went wrong.
|
Just checking in — let me know if anything else is required from me. |
Sorry, something went wrong.
|
There's #60814 (review) regarding the order of the test assertions, otherwise all good 👍 |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: nodejs#60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
PR-URL: #60814 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Ilyas Shabi <ilyasshabi94@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fix: handle --eval= and --print= correctly in getMainArgs()
Fixes #60808
parseArgs() was skipping the first positional argument when Node was started
with --eval= or --print=. The logic only checked for --eval / --print
and missed the --eval=... / --print=... forms.
This patch adds startsWith('--eval=') and startsWith('--print=') checks so
getMainArgs() returns the correct slice of process.argv.
After this fix, positional arguments are preserved correctly for all eval/print forms.