Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const execTaps = async (taps, fnIdent, fnIdx) => {
for (const [idx, t] of iter(taps)) {
const ident = `#${String(fnIdx).padStart(2, '0')}/${fnIdent}/tap-#${idx}`;
logger.silly(`exec ${ident}`);
try {
await t(context, this._action, fnIdx, fnIdent);
} catch (e) {
logger.error(`Exception during ${ident}:\n${e.stack}`);
throw e;
}
}
};