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

Unified Diff: sdk/lib/io/websocket_impl.dart

Issue 2272703007: Fix ArgumentError constructor call. (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/websocket_impl.dart
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart
index 17520a1ecfb72bfef75a7ebce21403d8040b1871..047cf697ea135feda1b815d4f03e09b2bbe4a04b 100644
--- a/sdk/lib/io/websocket_impl.dart
+++ b/sdk/lib/io/websocket_impl.dart
@@ -1184,7 +1184,7 @@ class _WebSocketImpl extends Stream with _ServiceObject implements WebSocket {
void add(data) { _sink.add(data); }
void addUtf8Text(List<int> bytes) {
if (bytes is! List<int>) {
- throw new ArgumentError(bytes, "bytes", "Is not a list of bytes");
+ throw new ArgumentError.value(bytes, "bytes", "Is not a list of bytes");
}
_sink.add(new _EncodedString(bytes));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698