Index: Source/modules/mediastream/RTCDataChannel.cpp |
diff --git a/Source/modules/mediastream/RTCDataChannel.cpp b/Source/modules/mediastream/RTCDataChannel.cpp |
index 43e24e8ff655fb5f953b15db69d7cea026a0f45d..4d5fedb3401de91bac329e14639c826b62327241 100644 |
--- a/Source/modules/mediastream/RTCDataChannel.cpp |
+++ b/Source/modules/mediastream/RTCDataChannel.cpp |
@@ -165,7 +165,7 @@ void RTCDataChannel::setBinaryType(const String& binaryType, ExceptionState& exc |
else if (binaryType == "arraybuffer") |
m_binaryType = BinaryTypeArrayBuffer; |
else |
- exceptionState.throwDOMException(TypeMismatchError, "Unknown binary type : " + binaryType); |
+ exceptionState.throwDOMException(TypeError, "Unknown binary type : " + binaryType); |
} |
void RTCDataChannel::send(const String& data, ExceptionState& exceptionState) |