path might not be a string

pull/128/merge
Fabian Jakobs 2016-01-15 11:25:41 +00:00
rodzic 4cb54eed11
commit dcd8e9df98
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -47,7 +47,7 @@ module.exports = function(methods, vfsHome, vfsWorkspace) {
});
args[1] = options;
if (path.charAt(0) == "~") {
if (typeof path == "string" && path.charAt(0) == "~") {
args[0] = substituteTilde(path);
vfsHome[name].apply(vfsHome, args);