fix: files.join(); RootShell.isRootAvailable() crash

This commit is contained in:
hyb1996
2018-01-27 09:18:42 +08:00
parent 76f02863f7
commit 1e8183f756
9 changed files with 33 additions and 48 deletions

View File

@@ -3,7 +3,7 @@ module.exports = function(__runtime__, scope){
var fs = __runtime__.files;
var files = Object.create(fs);
files.join = function(base){
var paths = Array.prototype.slice.call(arguments, 0);
var paths = Array.prototype.slice.call(arguments, 1);
return fs.join(base, paths);
}
scope.files = files;