Index: Source/modules/webaudio/AudioBufferSourceNode.cpp |
diff --git a/Source/modules/webaudio/AudioBufferSourceNode.cpp b/Source/modules/webaudio/AudioBufferSourceNode.cpp |
index e7257bfc62a98a5608bec9cc0f436c5f783f4ee5..d47c3312b74afebb0612a1038c3487b5fb6b149b 100644 |
--- a/Source/modules/webaudio/AudioBufferSourceNode.cpp |
+++ b/Source/modules/webaudio/AudioBufferSourceNode.cpp |
@@ -334,12 +334,6 @@ bool AudioBufferSourceNode::renderFromBuffer(AudioBus* bus, unsigned destination |
void AudioBufferSourceNode::setBuffer(AudioBuffer* buffer, ExceptionState& exceptionState) |
{ |
ASSERT(isMainThread()); |
- // FIXME: It does not look like we should throw if the buffer is null as |
- // the attribute is nullable in the specification. |
- if (!buffer) { |
- exceptionState.throwTypeError("buffer cannot be null"); |
- return; |
- } |
// The context must be locked since changing the buffer can re-configure the number of channels that are output. |
AudioContext::AutoLocker contextLocker(context()); |