Index: Source/modules/webaudio/DefaultAudioDestinationNode.cpp |
diff --git a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp |
index 1d013d9d9c869e73c3a2d97ab994bffea91b1bce..5fe8bacdf5d7b4e3263a87054824e265d41e983a 100644 |
--- a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp |
+++ b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp |
@@ -28,6 +28,7 @@ |
#include "modules/webaudio/DefaultAudioDestinationNode.h" |
+#include "bindings/v8/ExceptionMessages.h" |
#include "bindings/v8/ExceptionState.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/platform/Logging.h" |
@@ -119,7 +120,12 @@ void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, Ex |
ASSERT(isMainThread()); |
if (!maxChannelCount() || channelCount > maxChannelCount()) { |
- es.throwUninformativeAndGenericDOMException(InvalidStateError); |
+ es.throwDOMException( |
+ InvalidStateError, |
+ ExceptionMessages::failedToSet( |
+ "channelCount", |
+ "AudioDestinationNode", |
+ "invalid channel count.")); |
Mike West
2013/09/27 06:44:39
Same as above.
|
return; |
} |