parallelize-async-work
ComputerGuy 6 days ago
parent 1b55045a16
commit 8091a6eb36

@ -261,12 +261,10 @@ export function VariableDeclaration(node, context) {
// TODO make it work without this // TODO make it work without this
declarator.id.type === 'Identifier' declarator.id.type === 'Identifier'
) { ) {
parallelize = can_be_parallelized( parallelize = can_be_parallelized(value, context.state.scope, context.state.analysis, [
value, ...(context.state.current_parallelized_chunk?.bindings ?? []),
context.state.scope, ...context.state.scope.get_bindings(declarator)
context.state.analysis, ]);
context.state.current_parallelized_chunk?.bindings ?? []
);
} }
/** @type {VariableDeclarator[]} */ /** @type {VariableDeclarator[]} */

Loading…
Cancel
Save