This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Currently one can create useless buffers by passing 0 as one of the parameter. That should not be allowed, but an exception should be thrown.
*** Bug 19867 has been marked as a duplicate of this bug. ***
I think the INDEX_SIZE_ERR exception must be thrown in this case.
Before I change the spec, can we decide on the exception code for out-of-range sampleRate? It seems odd to talk in terms of "index" in this case. What do typed arrays use for zero length? I'd just like to get all the exception codes in order for createBuffer()...
Hmm, we could also use NOT_SUPPORTED_ERR.
Web Audio API issues have been migrated to Github. See https://github.com/WebAudio/web-audio-api/issues
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.