| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I'd love to see a test for this but I realize that might be tricky in this case. |
Sorry, something went wrong.
@iansu was trying to think of a reasonable way to test this, and an idea doesn't immediately jump out at me that's not terrible. We lazy load rimraf, so perhaps I could mock fs in the require cache, and then delete the require cache. I'll see what I can do. |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #35566 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #35566 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: nodejs#35566 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
| Back | FazBrowse Home | New Git URL |
When an error occurs while running rimrafSync, we pass the original options through to the call to rmdirSync, this in turn spawns another call to rimraf, rather than simply removing the file.
Fixes #34266
Checklist