Skip to content

benchmark: fix benchmark for file path and URL conversion

In the original code, there was a typo in method = method === 'fileURLOrPath' ? fileURLToPath : pathToFileURL;, which caused only pathToFileURL to be executed. I have corrected this issue and added additional test cases for Windows UNC paths and regular file paths.

Merge request reports

Loading