Skip to content

Commit 28a4b55

Browse files
rakudramaCommit Queue
authored and
Commit Queue
committed
[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 <[email protected]> Commit-Queue: Martin Kustermann <[email protected]>
1 parent d0a2656 commit 28a4b55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/lib/isolate/unmodifiable_typed_data_pass_by_copy_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import "package:expect/expect.dart";
1010

1111
main() {
1212
final backing = new Uint8List(1);
13-
final original = new UnmodifiableUint8ListView(backing);
13+
final original = backing.asUnmodifiableView();
1414
var port;
1515
port = new RawReceivePort((copy) {
1616
port.close();

tests/lib_2/isolate/unmodifiable_typed_data_pass_by_copy_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import "package:expect/expect.dart";
1212

1313
main() {
1414
final backing = new Uint8List(1);
15-
final original = new UnmodifiableUint8ListView(backing);
15+
final original = backing.asUnmodifiableView();
1616
var port;
1717
port = new RawReceivePort((copy) {
1818
port.close();

0 commit comments

Comments
 (0)