| Index: runtime/bin/stdio_patch.dart
|
| diff --git a/runtime/bin/stdio_patch.dart b/runtime/bin/stdio_patch.dart
|
| index 7e66009655ce1c76856d4b56dc08751de6c8cc29..cf0281991d93ee43c47e554fdfb6b077e7295b83 100644
|
| --- a/runtime/bin/stdio_patch.dart
|
| +++ b/runtime/bin/stdio_patch.dart
|
| @@ -29,10 +29,16 @@ patch class _StdIOUtils {
|
| }
|
| }
|
|
|
| - static int _socketType(nativeSocket) {
|
| + static int _socketType(Socket socket) {
|
| + if (socket is _Socket) return _nativeSocketType(socket._nativeSocket);
|
| + return null;
|
| + }
|
| +
|
| + static int _nativeSocketType(_NativeSocket nativeSocket) {
|
| var result = _getSocketType(nativeSocket);
|
| if (result is OSError) {
|
| - throw new FileSystemException("Error retrieving socket type", "", result);
|
| + throw new FileSystemException(
|
| + "Error retrieving socket type", "", result);
|
| }
|
| return result;
|
| }
|
|
|