Added hasOwnProperty check.

This commit is contained in:
flash 2024-06-10 02:59:12 +00:00
parent e4871feca2
commit 299150e57a

View file

@ -33,6 +33,9 @@ module.exports.process = async (env, tasks) => {
const files = {};
for(const type of order) {
if(!types.hasOwnProperty(type))
continue;
if(!(type in types))
throw `${type} is not a supported build task type`;