42bcdcd332
Reason for revert: Breaking API change blocks Flutter rolls. Reverting to reconsider, work around, etc.. Revert "[ VM ] Fixed issue where backing array was deleted from an ExternalTypedData before the ExternalTypedData was used." This reverts commit916b9da48d. Revert "[ VM ] Fixed tests for non-UTF8 paths on Windows / Macos." This reverts commit6327fe91c2. Revert "[ VM ] Fix failing tests on Windows bots after non-UTF-8 paths change." This reverts commitb51f4b7956. Revert "[ VM ] Updated non-UTF-8 tests to expect exceptions on OSX/iOS." This reverts commitbcb36247d2. Revert "Revert "[ VM ] Updated non-UTF-8 tests to expect exceptions on OSX/iOS."" This reverts commit24450c79a5. Change-Id: I756f74f4acdde168d0984fe130f05f9252366334 Reviewed-on: https://dart-review.googlesource.com/55441 Reviewed-by: Todd Volkert <tvolkert@google.com> Commit-Queue: Zach Anderson <zra@google.com>
62 lines
1.8 KiB
Dart
62 lines
1.8 KiB
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/// Note: the VM concatenates all patch files into a single patch file. This
|
|
/// file is the first patch in "dart:io" which contains all the imports used by
|
|
/// patches of that library. We plan to change this when we have a shared front
|
|
/// end and simply use parts.
|
|
|
|
import "dart:_internal" show VMLibraryHooks, patch;
|
|
|
|
import "dart:async"
|
|
show
|
|
Completer,
|
|
Future,
|
|
Stream,
|
|
StreamConsumer,
|
|
StreamController,
|
|
StreamSubscription,
|
|
Timer,
|
|
Zone,
|
|
scheduleMicrotask;
|
|
|
|
import "dart:collection" show HashMap;
|
|
|
|
import "dart:convert" show Encoding;
|
|
|
|
import "dart:developer" show registerExtension;
|
|
|
|
import "dart:isolate" show RawReceivePort, ReceivePort, SendPort;
|
|
|
|
import "dart:math" show min;
|
|
|
|
import "dart:nativewrappers" show NativeFieldWrapperClass1;
|
|
|
|
import "dart:typed_data" show Uint8List;
|
|
|
|
/// These are the additional parts of this patch library:
|
|
// part "directory_patch.dart";
|
|
// part "eventhandler_patch.dart";
|
|
// part "file_patch.dart";
|
|
// part "file_system_entity_patch.dart";
|
|
// part "filter_patch.dart";
|
|
// part "io_service_patch.dart";
|
|
// part "platform_patch.dart";
|
|
// part "process_patch.dart";
|
|
// part "socket_patch.dart";
|
|
// part "stdio_patch.dart";
|
|
// part "secure_socket_patch.dart";
|
|
// part "sync_socket_patch.dart";
|
|
|
|
@patch
|
|
class _IOCrypto {
|
|
@patch
|
|
static Uint8List getRandomBytes(int count) native "Crypto_GetRandomBytes";
|
|
}
|
|
|
|
_setupHooks() {
|
|
VMLibraryHooks.eventHandlerSendData = _EventHandler._sendData;
|
|
VMLibraryHooks.timerMillisecondClock = _EventHandler._timerMillisecondClock;
|
|
}
|