WICG/shared-storage

Use of FrozenArray<SharedStorageUrlWithMetadata> as an argument type makes no sense

Closed this issue · 2 comments

The spec has two methods which take FrozenArray<SharedStorageUrlWithMetadata>.

It's not clear what was intended here. But per the Web IDL spec, almost the exact same set of values are accepted compared to accepting the more conventional sequence<SharedStorageUrlWithMetadata>.

(The difference is that certain proxies for arrays, which define throwing getOwnPropertyDescriptor() traps, would be rejected, because in theory the implementation is supposed to freeze the incoming array.)

We'd like to prohibit the usage of FrozenArray<T> as a parameter type in Web IDL, per whatwg/webidl#1399. It would be lovely if you could move to using sequence<>s.

Ping! This is one of the last things we need to fix to help with whatwg/webidl#1399.

This is done in: #162