Commit f52dd84
authored
fix(fs): use forward-slash paths in normalize_path on all platforms (#642)
## Summary
- Fix `normalize_path` to build paths using forward slashes on all
platforms
- The VFS is always Unix-style, but `PathBuf` uses native separators
(backslash on Windows)
- This caused `pwd` to return `/tmp\navtest` instead of `/tmp/navtest`
on Windows
## Test plan
- [x] All Rust tests pass
- [ ] CI green
- [ ] Windows JS tests should pass after this fix1 parent 21a9b56 commit f52dd84
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
424 | 426 | | |
425 | 427 | | |
426 | | - | |
427 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
428 | 436 | | |
429 | | - | |
| 437 | + | |
430 | 438 | | |
431 | 439 | | |
432 | 440 | | |
433 | 441 | | |
434 | | - | |
435 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
436 | 446 | | |
437 | | - | |
438 | 447 | | |
439 | 448 | | |
440 | 449 | | |
| |||
0 commit comments