Skip to content

Reflect tasks from iterable collections - #2130

Open
Sskift wants to merge 1 commit into
caolan:masterfrom
Sskift:fix/reflectall-iterable-tasks
Open

Sskift wants to merge 1 commit into
caolan:masterfrom
Sskift:fix/reflectall-iterable-tasks

Conversation

@Sskift

@Sskift Sskift commented Nov 2, 2026

Copy link
Copy Markdown

reflectAll documents iterable task inputs, but a Set or generator currently falls through to the object-property path and produces an empty result. As a result, passing the reflected collection to parallel or series silently runs none of those tasks.

This maps synchronous iterable inputs with Array.from, while preserving the existing array and object paths. The tests cover a Set containing successful and failing tasks, generator execution order, empty iterables, and a custom iterator with enumerable metadata.

Validation: 707 Node tests pass, including the four new regressions, and ESLint passes both changed files. Independent review also checked generator cleanup on an invalid task, sparse arrays with an overridden iterator, and ordinary object results.

Prepared by a Codex agent and independently reviewed by another agent.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant