exception is specified as INDEX_SIZE_ERROR for invalid numberOfInputs value.
(It was just 'An exception' in previous version.)
Created attachment 264848 [details]
Created attachment 264849 [details]
Comment on attachment 264849 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=264849&action=review
Thanks for this patch, Hyemi, and sorry for the delay in getting a review. It looks good, but note that AudioContext::createPeriodicWave has the same problem. r=me if you could fix that too.
> + ec = INDEX_SIZE_ERR;
Hm, I see that this change is correct, because ChannelSplitterNode::create (and also ChannelMergerNode::create) will only ever fail if the numberOfInputs parameter is invalid. I'm a bit uncomfortable with relying on a null return value from create to signal that, since it's not at all clear from reading AudioContext.cpp why the ExceptionCode should be INDEX_SIZE_ERROR. I was going to ask you to pass the ExceptionCode down into the create function, but I see this pattern is established throughout AudioContext.cpp, so the code you have here is best.
> +PASS IndexSizeError was thrown for numberOfInputs > 32.
Ah, I see 32 is valid; good catch. I would mention this fix separately in the changelog, since it is noteworthy.
Created attachment 270576 [details]
I added the fix for createPeriodicWave also.
Because I'm not good at english that much, my change-log could be hard to understand or not clear. Feel free to point out wrong sentence which needs to be changed.
Comment on attachment 270576 [details]
Attachment 270576 [details] did not pass mac-ews (mac):
New failing tests:
Created attachment 270577 [details]
Archive of layout-test-results from ews102 for mac-yosemite
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Created attachment 270578 [details]
Comment on attachment 270578 [details]
Clearing flags on attachment: 270578
Committed r196130: <http://trac.webkit.org/changeset/196130>
All reviewed patches have been landed. Closing bug.