diff --git a/exec/load/filebase.js b/exec/load/filebase.js index 0eea4c58b02daa512d66daf01775066dd0f94a4d..bb68556251c7cba285942941e288aebcf6d01462 100644 --- a/exec/load/filebase.js +++ b/exec/load/filebase.js @@ -92,11 +92,13 @@ function FileBase(dir) { this.path = fullpath(file_area.dir[dir].path+this.name); } } - FileEntry.prototype = { - get name() { + + Object.defineProperty(FileEntry.prototype, "name", { + enumerable: true, + get: function() { return this.base+'.'+this.ext; } - }; + }); if(!f.exists) return ret;