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

Unified Diff: Source/modules/websockets/DOMWebSocket.cpp

Issue 871013007: Use enum BinaryType for WebSocket.binaryType, instead of DOMString (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/websockets/DOMWebSocket.cpp
diff --git a/Source/modules/websockets/DOMWebSocket.cpp b/Source/modules/websockets/DOMWebSocket.cpp
index 25818985834cfb23185f818b536a235c33734906..8847a69e8463ef788f296d30163b3a56917b5e38 100644
--- a/Source/modules/websockets/DOMWebSocket.cpp
+++ b/Source/modules/websockets/DOMWebSocket.cpp
@@ -529,7 +529,7 @@ void DOMWebSocket::setBinaryType(const String& binaryType)
m_binaryType = BinaryTypeArrayBuffer;
return;
}
- logError("'" + binaryType + "' is not a valid value for binaryType; binaryType remains unchanged.");
+ ASSERT_NOT_REACHED();
Nils Barth (inactive) 2015/02/11 18:58:45 ASSERT sounds fine, thanks!
}
const AtomicString& DOMWebSocket::interfaceName() const

Powered by Google App Engine
This is Rietveld 408576698