| Index: Source/modules/mediastream/RTCSessionDescription.cpp
|
| diff --git a/Source/modules/mediastream/RTCSessionDescription.cpp b/Source/modules/mediastream/RTCSessionDescription.cpp
|
| index 33dad9a09598781558a95acf30884c98e07c7570..4e3f45ff4f413649c532d01960ac9bad6f02bb79 100644
|
| --- a/Source/modules/mediastream/RTCSessionDescription.cpp
|
| +++ b/Source/modules/mediastream/RTCSessionDescription.cpp
|
| @@ -53,7 +53,7 @@ PassRefPtr<RTCSessionDescription> RTCSessionDescription::create(const Dictionary
|
| String type;
|
| bool ok = descriptionInitDict.get("type", type);
|
| if (ok && !verifyType(type)) {
|
| - exceptionState.throwDOMException(TypeMismatchError, constructIllegalTypeExceptionMessage(type));
|
| + exceptionState.throwDOMException(TypeError, constructIllegalTypeExceptionMessage(type));
|
| return nullptr;
|
| }
|
|
|
| @@ -84,7 +84,7 @@ void RTCSessionDescription::setType(const String& type, ExceptionState& exceptio
|
| if (verifyType(type))
|
| m_webSessionDescription.setType(type);
|
| else
|
| - exceptionState.throwDOMException(TypeMismatchError, constructIllegalTypeExceptionMessage(type));
|
| + exceptionState.throwDOMException(TypeError, constructIllegalTypeExceptionMessage(type));
|
| }
|
|
|
| String RTCSessionDescription::sdp()
|
|
|