Added hasOwnProperty check.
This commit is contained in:
parent
e4871feca2
commit
299150e57a
1 changed files with 3 additions and 0 deletions
|
@ -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`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue