Skip to content

test: verify [async] marker is structural, not a filter#87

Open
isaacs wants to merge 2 commits into
nodejs:mainfrom
isaacs:isaacs/test-async-marker
Open

test: verify [async] marker is structural, not a filter#87
isaacs wants to merge 2 commits into
nodejs:mainfrom
isaacs:isaacs/test-async-marker

Conversation

@isaacs

@isaacs isaacs commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Note: Based on #86, land that first

The 'functionQuery' generated variants include a '[async]' token in the
generated selector. This was somewhat confusing, leading me to think that
it was filtering for async functions, though this is not the case.

The added test does nothing but verify the result of this investigation,
and prevents our functionQuery selectors from regressing to only affecting
async functions. At least, the presence of a test makes it less confusing.

isaacs added 2 commits July 1, 2026 07:56
This is the cleanest way to do certain things that cannot be reached by
name alone. However, it's brittle to rely on a feature, even a stable
one, which is not documented or tested. So, treat it as a first-class
feature.
The 'functionQuery' generated variants include a '[async]' token in the
generated selector. This was somewhat confusing, leading me to think that
it was filtering for async functions, though this is not the case.

The added test does nothing but verify the result of this investigation,
and prevents our functionQuery selectors from regressing to only affecting
async functions. At least, the presence of a test makes it less confusing.
@isaacs isaacs force-pushed the isaacs/test-async-marker branch from 5985e83 to 0d34514 Compare July 1, 2026 14:57
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