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

Unified Diff: Source/modules/mediastream/MediaStream.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/filesystem/FileWriterSync.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.cpp ('k') | Source/modules/mediastream/RTCDataChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698