Should the check on process()
be removed from AudioWorkletGlobalScope.registerProcessor()
?
#2045
Labels
Needs Edits
Decision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/
Milestone
From about #1767 (comment), there was discussion about moving the check for
process()
out ofregisterProcessor()
.#1767 (comment) then resolved to add an
IsCallable()
check before callingprocess()
in the rendering loop, and to "remove the redundantprocess()
check in the instantiation of AWP".There was no "
process()
check" in AudioWorkletProcessor instantiation, and theprocess()
check inregisterProcessor()
is redundant now, so I wonder whether the intention was to remove the redundant check from registerProcessor()?This would allow the client
AudioWorkletProcessorConstructor
to create theprocess()
method in a way other than having it on the prototype, and would provide opportunity for reporting an error throughAudioWorkletNode.onprocessorerror
.The text was updated successfully, but these errors were encountered: