-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,17 @@ pub fn join_path(fs_path: &str, join: &str) -> Option<String> { | |
// Paths that we join are written as source code (eg, `join_path(fs_path, | ||
// "foo/bar.js")`) and it's expected that they will never contain a | ||
// backslash. | ||
debug_assert!( | ||
!join.contains('\\'), | ||
"joined path {} must not contain a Windows directory '\\', it must be normalized to Unix \ | ||
'/'", | ||
join | ||
); | ||
|
||
/* | ||
A task panicked: joined path node_modules/.pnpm/[email protected]/node_modules/babel-plugin-react-compiler/dist\\/ must not contain a Windows directory '\', it must be normalized to Unix '/' | ||
*/ | ||
|
||
// debug_assert!( | ||
// !join.contains('\\'), | ||
// "joined path {} must not contain a Windows directory '\\', it must be normalized to Unix | ||
// \ '/'", | ||
// join | ||
// ); | ||
|
||
// TODO: figure out why this freezes the benchmarks. | ||
// // an absolute path would leave the file system root | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters