Closed syrusakbary closed 6 months ago
headers.entries
is actually defined as a side of effect of the Headers
object being defined as an iterable (https://webidl.spec.whatwg.org/#idl-iterable) so this is technically covered by the spec already... runtimes that support headers.entries
(workerd, deno, node.js, etc) already compliant.
Headers.entries is implemented in some WinterCG runtimes (Deno Deploy & Cloudflare Workers) but is not in the spec. Here's the example:
See related issue on WinterJS: https://github.com/wasmerio/winterjs/issues/25#issuecomment-1790851061
Should
entries
be added to the spec so Cloudflare and Deno Deploy stay compliant with the spec and the rest of runtimes add support as well?