| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,7 +85,7 @@ mergeInto(LibraryManager.library, { | |||
| 85 | 85 | if (typeof path !== 'string') { | |
| 86 | 86 | throw new TypeError('Arguments to path.resolve must be strings'); | |
| 87 | 87 | } else if (!path) { | |
| 88 | - continue; | ||
| 88 | + return ''; // an invalid portion invalidates the whole thing | ||
| 89 | 89 | } | |
| 90 | 90 | resolvedPath = path + '/' + resolvedPath; | |
| 91 | 91 | resolvedAbsolute = path.charAt(0) === '/'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,3 @@ | |||
| 1 | - | ||
| 2 | - isRoot: false | ||
| 3 | - exists: true | ||
| 4 | - error: 0 | ||
| 5 | - path: /abc | ||
| 6 | - name: abc | ||
| 7 | - object.contents: ["123","456","deviceA","localLink","rootLink","relativeLink"] | ||
| 8 | - parentExists: true | ||
| 9 | - parentPath: / | ||
| 10 | - parentObject.contents: ["tmp","dev","forbidden","abc","def"] | ||
| 11 | - | ||
| 12 | 1 | / | |
| 13 | 2 | isRoot: true | |
| 14 | 3 | exists: true | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,6 @@ function explore(path) { | |||
| 31 | 31 | } | |
| 32 | 32 | ||
| 33 | 33 | FS.currentPath = '/abc'; | |
| 34 | - explore(''); | ||
| 35 | 34 | explore('/'); | |
| 36 | 35 | explore('.'); | |
| 37 | 36 | explore('..'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments