| Index: Source/modules/mediastream/MediaStream.cpp
|
| diff --git a/Source/modules/mediastream/MediaStream.cpp b/Source/modules/mediastream/MediaStream.cpp
|
| index bfde31b33394c5d664505278a5aa0e5211aefd1b..4ecb15cd79ab4a99ce3a350f6adabcc75e470df3 100644
|
| --- a/Source/modules/mediastream/MediaStream.cpp
|
| +++ b/Source/modules/mediastream/MediaStream.cpp
|
| @@ -173,7 +173,7 @@ void MediaStream::addTrack(PassRefPtr<MediaStreamTrack> prpTrack, ExceptionState
|
| }
|
|
|
| if (!prpTrack) {
|
| - exceptionState.throwDOMException(TypeMismatchError, "The MediaStreamTrack provided is invalid.");
|
| + exceptionState.throwDOMException(TypeError, "The MediaStreamTrack provided is invalid.");
|
| return;
|
| }
|
|
|
| @@ -203,7 +203,7 @@ void MediaStream::removeTrack(PassRefPtr<MediaStreamTrack> prpTrack, ExceptionSt
|
| }
|
|
|
| if (!prpTrack) {
|
| - exceptionState.throwDOMException(TypeMismatchError, "The MediaStreamTrack provided is invalid.");
|
| + exceptionState.throwDOMException(TypeError, "The MediaStreamTrack provided is invalid.");
|
| return;
|
| }
|
|
|
|
|