From 299150e57a97671996f30663a5e3e9fccedb6f0a Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 10 Jun 2024 02:59:12 +0000 Subject: [PATCH] Added hasOwnProperty check. --- src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.js b/src/index.js index 2f0b737..a95771d 100644 --- a/src/index.js +++ b/src/index.js @@ -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`;