Skip to content

Editorial: queue a task in Cache API - #1837

Open
monica-ch wants to merge 1 commit into
w3c:mainfrom
monica-ch:queue-task-cache-api
Open

Editorial: queue a task in Cache API#1837
monica-ch wants to merge 1 commit into
w3c:mainfrom
monica-ch:queue-task-cache-api

Conversation

@monica-ch

@monica-ch monica-ch commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Updates to:

  • cache-match — wrap each resolve/reject path in a Queue a task on the promise's responsible event loop.
  • cache-matchall — wrap the CORS-check TypeError rejection in a Queue a task with an abort step.

Both methods resolved/rejected the promise directly from an "in parallel" block, which violates the "don't touch JS objects from parallel" rule.

This is part 5/6 of #1740. Split out from #1755 for focused review.


Preview | Diff

- Cache.match(): wrap each resolve/reject path in a Queue a task on the promise's responsible event loop.
- Cache.matchAll(): wrap the CORS-check TypeError rejection in a Queue a task with abort steps.

Refs: w3c#1740
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.

2 participants