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

Unified Diff: Source/modules/filesystem/FileWriterSync.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
Index: Source/modules/filesystem/FileWriterSync.cpp
diff --git a/Source/modules/filesystem/FileWriterSync.cpp b/Source/modules/filesystem/FileWriterSync.cpp
index 8f7579d51f594576d8606150ca2a3d2987af7126..da5be7240adc3a140c00414fb5f70bcc9091defe 100644
--- a/Source/modules/filesystem/FileWriterSync.cpp
+++ b/Source/modules/filesystem/FileWriterSync.cpp
@@ -45,7 +45,7 @@ void FileWriterSync::write(Blob* data, ExceptionState& exceptionState)
ASSERT(writer());
ASSERT(m_complete);
if (!data) {
- exceptionState.throwDOMException(TypeMismatchError, FileError::typeMismatchErrorMessage);
+ exceptionState.throwDOMException(TypeError, FileError::typeMismatchErrorMessage);
return;
}
« no previous file with comments | « Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp ('k') | Source/modules/mediastream/MediaStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698