fix: foreach again

pull/10320/head
S. Elliott Johnson 2 years ago
parent 9a688cc543
commit 3b6f5b8e38

@ -1428,9 +1428,9 @@ const template_visitors = {
// TODO hoist where possible
/** @type {import('estree').Pattern[]} */
const args = [b.id('$$payload')];
node.context.elements.forEach((arg) => {
for (const arg of node.context.elements) {
if (arg) args.push(arg);
});
}
context.state.init.push(
b.function_declaration(

Loading…
Cancel
Save