mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
[tests/isolate] Avoid use of deprecated unmodifiable typed data view constructor
Issue: #53785 Change-Id: I205492adcec6432f5503cbf9f015a6ac2e9d6f5c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332165 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
parent
d0a2656611
commit
28a4b55c0a
|
@ -10,7 +10,7 @@ import "package:expect/expect.dart";
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
final backing = new Uint8List(1);
|
final backing = new Uint8List(1);
|
||||||
final original = new UnmodifiableUint8ListView(backing);
|
final original = backing.asUnmodifiableView();
|
||||||
var port;
|
var port;
|
||||||
port = new RawReceivePort((copy) {
|
port = new RawReceivePort((copy) {
|
||||||
port.close();
|
port.close();
|
||||||
|
|
|
@ -12,7 +12,7 @@ import "package:expect/expect.dart";
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
final backing = new Uint8List(1);
|
final backing = new Uint8List(1);
|
||||||
final original = new UnmodifiableUint8ListView(backing);
|
final original = backing.asUnmodifiableView();
|
||||||
var port;
|
var port;
|
||||||
port = new RawReceivePort((copy) {
|
port = new RawReceivePort((copy) {
|
||||||
port.close();
|
port.close();
|
||||||
|
|
Loading…
Reference in a new issue