Mark off changes to path.js with XXXidbfs comment prefix.
This commit is contained in:
parent
00b7866874
commit
6608a368f5
|
@ -67,6 +67,7 @@ define(function() {
|
||||||
resolvedAbsolute = false;
|
resolvedAbsolute = false;
|
||||||
|
|
||||||
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
||||||
|
// XXXidbfs: we don't have process.cwd() so we use '/' as a fallback
|
||||||
var path = (i >= 0) ? arguments[i] : '/';
|
var path = (i >= 0) ? arguments[i] : '/';
|
||||||
|
|
||||||
// Skip empty and invalid entries
|
// Skip empty and invalid entries
|
||||||
|
@ -182,7 +183,7 @@ define(function() {
|
||||||
if (ext && f.substr(-1 * ext.length) === ext) {
|
if (ext && f.substr(-1 * ext.length) === ext) {
|
||||||
f = f.substr(0, f.length - ext.length);
|
f = f.substr(0, f.length - ext.length);
|
||||||
}
|
}
|
||||||
// NOTE: node.js just does `return f`
|
// XXXidbfs: node.js just does `return f`
|
||||||
return f === "" ? "/" : f;
|
return f === "" ? "/" : f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,8 +191,8 @@ define(function() {
|
||||||
return splitPath(path)[3];
|
return splitPath(path)[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: we don't support path.exists() or path.existsSync(), which are deprecated,
|
// XXXidbfs: we don't support path.exists() or path.existsSync(), which
|
||||||
// and need a FileSystem instance to work. Use fs.stat().
|
// are deprecated, and need a FileSystem instance to work. Use fs.stat().
|
||||||
|
|
||||||
return {
|
return {
|
||||||
normalize: normalize,
|
normalize: normalize,
|
||||||
|
|
Loading…
Reference in New Issue