Skip to content

Commit 07db91e

Browse files
committed
Bug fix: _toAbsolutePath choked on null relative path
1 parent 28ca514 commit 07db91e

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
*.DS_Store
12
node_modules/
23
jsfs.map
34
*.swp
45
tests/*-spec.js
56
.atom-build.json
67
demo/*.js
7-
demo/*.map
8+
demo/*.map

jsfs.litcoffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ If this function is given an absolute path as its second argument,
187187
it returns it unchanged.
188188

189189
_toAbsolutePath : ( cwdPath, relativePath ) ->
190+
if not relativePath? then return cwdPath
190191
sep = FileSystem::pathSeparator
191192
if relativePath[...sep.length] is sep then return relativePath
192193
result = FileSystem::_joinPath \

release/jsfs.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/jsfs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/jsfs.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/jsfs.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)