| Index: Source/modules/webaudio/AudioBuffer.cpp
|
| diff --git a/Source/modules/webaudio/AudioBuffer.cpp b/Source/modules/webaudio/AudioBuffer.cpp
|
| index 272dfc9385c222904d77fdd9b3457528d2965cd7..b520512e054c8be453e64ca67b42a93062df98df 100644
|
| --- a/Source/modules/webaudio/AudioBuffer.cpp
|
| +++ b/Source/modules/webaudio/AudioBuffer.cpp
|
| @@ -32,7 +32,6 @@
|
|
|
| #include "modules/webaudio/AudioBuffer.h"
|
|
|
| -#include "bindings/v8/ExceptionMessages.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "platform/audio/AudioBus.h"
|
| @@ -131,12 +130,7 @@ void AudioBuffer::releaseMemory()
|
| PassRefPtr<Float32Array> AudioBuffer::getChannelData(unsigned channelIndex, ExceptionState& exceptionState)
|
| {
|
| if (channelIndex >= m_channels.size()) {
|
| - exceptionState.throwDOMException(
|
| - IndexSizeError,
|
| - ExceptionMessages::failedToExecute(
|
| - "getChannelData",
|
| - "AudioBuffer",
|
| - "channel index (" + String::number(channelIndex) + ") exceeds number of channels (" + String::number(m_channels.size()) + ")"));
|
| + exceptionState.throwDOMException(IndexSizeError, "channel index (" + String::number(channelIndex) + ") exceeds number of channels (" + String::number(m_channels.size()) + ")");
|
| return 0;
|
| }
|
|
|
|
|