mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:50:11 +00:00
Fix ArgumentError constructor call.
R=asiva@google.com Review URL: https://codereview.chromium.org/2272703007 .
This commit is contained in:
parent
b313b5cef9
commit
0245016792
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue