这是indexloc提供的服务,不要输入任何密码
Skip to content

Spec is inconsistent about whether parameterDescriptors is an array or an iterable #1947

@bzbarsky

Description

@bzbarsky

https://webaudio.github.io/web-audio-api/#AudioWorkletProcessor-methods says:

may have a valid static property named parameterDescriptors which is an iterable of AudioParamDescriptor ...

but https://webaudio.github.io/web-audio-api/#dom-audioworkletglobalscope-registerprocessor step 8 has:

If descriptors is neither an array nor undefined, throw a TypeError and abort these steps.

Though it does not define what "an array" means; is it in the sense of https://tc39.es/ecma262/#sec-isarray or something else? That would allow Proxy to Array; at least Gecko's impletation at the moment does not, as far as I can tell.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions