| Index: third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
|
| index 06fc898c013a55999e9278e2a63be6edc49e90d5..c6ff529045e1bafc7796dc465d0dfed6d5a592ff 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
|
| @@ -609,18 +609,19 @@ AudioNode* AudioNode::connect(AudioNode* destination,
|
| // Sanity check input and output indices.
|
| if (outputIndex >= numberOfOutputs()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, "output index (" + String::number(outputIndex) +
|
| - ") exceeds number of outputs (" +
|
| - String::number(numberOfOutputs()) + ").");
|
| + IndexSizeError,
|
| + "output index (" + String::number(outputIndex) +
|
| + ") exceeds number of outputs (" +
|
| + String::number(numberOfOutputs()) + ").");
|
| return nullptr;
|
| }
|
|
|
| if (destination && inputIndex >= destination->numberOfInputs()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, "input index (" + String::number(inputIndex) +
|
| - ") exceeds number of inputs (" +
|
| - String::number(destination->numberOfInputs()) +
|
| - ").");
|
| + IndexSizeError,
|
| + "input index (" + String::number(inputIndex) +
|
| + ") exceeds number of inputs (" +
|
| + String::number(destination->numberOfInputs()) + ").");
|
| return nullptr;
|
| }
|
|
|
| @@ -675,9 +676,10 @@ void AudioNode::connect(AudioParam* param,
|
|
|
| if (outputIndex >= numberOfOutputs()) {
|
| exceptionState.throwDOMException(
|
| - IndexSizeError, "output index (" + String::number(outputIndex) +
|
| - ") exceeds number of outputs (" +
|
| - String::number(numberOfOutputs()) + ").");
|
| + IndexSizeError,
|
| + "output index (" + String::number(outputIndex) +
|
| + ") exceeds number of outputs (" +
|
| + String::number(numberOfOutputs()) + ").");
|
| return;
|
| }
|
|
|
| @@ -805,8 +807,9 @@ void AudioNode::disconnect(AudioNode* destination,
|
| // If there is no connection to the destination, throw an exception.
|
| if (numberOfDisconnections == 0) {
|
| exceptionState.throwDOMException(
|
| - InvalidAccessError, "output (" + String::number(outputIndex) +
|
| - ") is not connected to the given destination.");
|
| + InvalidAccessError,
|
| + "output (" + String::number(outputIndex) +
|
| + ") is not connected to the given destination.");
|
| }
|
| }
|
|
|
|
|