Calling AudioNode constructors should have identical behavior than using create*() function on BaseAudioContext. Otherwise, this leads to assertion hits like: https://ews-build.s3-us-west-2.amazonaws.com/macOS-Mojave-Debug-WK1-Tests-EWS/r405354-14671/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-scriptprocessornode-interface/simple-input-output-crash-log.txt We need to make sure that the AudioContext gets initialized when an AudioNode constructor gets called. We also need to make sure refNode() gets called if necessary.
Created attachment 405486 [details] Patch
Comment on attachment 405486 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405486&action=review > Source/WebCore/ChangeLog:3 > + Calling AudioNode constructors should have identical behavior than using create*() function on BaseAudioContext s/identical behavior than using create/identical behavior to using create/ > Source/WebCore/ChangeLog:8 > + Calling AudioNode constructors should have identical behavior than using create*() function on BaseAudioContext. Ditto.
Committed r265052: <https://trac.webkit.org/changeset/265052>
<rdar://problem/66289207>