Fix ArgumentError constructor call.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2272703007 .
This commit is contained in:
Ryan Macnak 2016-08-24 17:13:22 -07:00
parent b313b5cef9
commit 0245016792

View file

@ -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));
}