Re: [whatwg/webidl] Disallow FrozenArray<> in argument lists, and maybe dictionaries and return types (Issue #1399)

> Can you explain a bit more why it doesn't make sense? Also if this doesn't make sense, what would be the recommendation of `FrozenArray` in the AudioWorkletProcesor's `process()`? The original intention was to clarify that the array passed by the audio renderer is not mutable by the user code.

AFAICT receiving a FrozenArray is not very diffferent from receiving a sequence, per the step 1 of https://webidl.spec.whatwg.org/#js-frozen-array. The user code can't mutate the IDL converted sequence anyway because it gets the result of reconstruction from iterator: https://webidl.spec.whatwg.org/#js-sequence

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1399#issuecomment-2035806913
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1399/2035806913@github.com>

Received on Wednesday, 3 April 2024 23:33:29 UTC