Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Unified Diff: Source/modules/mediastream/RTCDataChannel.cpp

Issue 235123002: Should throw TypeError instead of TypeMismatchError (modules) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/mediastream/MediaStream.cpp ('k') | Source/modules/mediastream/RTCIceCandidate.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/modules/mediastream/MediaStream.cpp ('k') | Source/modules/mediastream/RTCIceCandidate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698