[w3c/ServiceWorker] Promise<FrozenArray<T>> should become Promise<sequence<T>> (Issue #1722)

A few methods, namely `Clients`'s `matchAll()`, `Cache`'s `matchAll()`, and `Cache`'s `keys()` return `Promise<FrozenArray<T>>`.

As discussed in https://github.com/whatwg/webidl/issues/1399, it doesn't really make sense to return frozen arrays as return values. The caller should just get back a `sequence<T>`.

It would be nice to clean this up so that the Web IDL spec can disallow using `FrozenArray<T>` in such scenarios.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1722
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1722@github.com>

Received on Wednesday, 26 June 2024 01:54:44 UTC