dart-sdk/tests/lib
Stephen Adams b657773d58 [typed_data] Deprecate UnmodifiableUint8ListView and friends
This is the first of several steps to remove the unmodifiable views for typed data classes. The end goal is that dart2js has only one class implementing `Uint8List` so that `Uint8List` accesses can always be compiled down to JavaScript code that directly uses indexed property accesses (`a[i]`).

This first step deprecates the unmodifiable view classes to help prevent their use in new code, and adds `asUnmodifiableView()` methods as a replacement for the small number of places that use the classes.

The next steps (see #53785) are to remove uses of the unmodifiable view classes from the SDK. Once this is complete the classes themselves can be removed.

TEST=ci

Issue: #53218
Issue: #53785

Change-Id: I04d4feb0d9f1619e6eee65236e559f5e6adf2661
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/321922
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2023-10-20 17:14:48 +00:00
..
analyzer Set up new test suites for migrating the tests to NNBD. 2019-11-19 00:18:43 +00:00
async Fix behavior of Stream.empty. 2023-08-17 15:26:59 +00:00
collection [flip-modifiers]: prep more tests for the class modifiers flag flip 2023-03-06 20:52:03 +00:00
convert Reland "Add class modifiers to dart:convert." again. 2023-03-29 16:54:23 +00:00
developer [ dart:developer ] Remove Metrics related classes 2023-03-10 16:50:10 +00:00
fix_data_tests Remove deprecated APIs from dart:developer 2022-07-19 07:10:03 +00:00
html Reland "[dart:html] Throw exception if Window.open opens null window" and 2023-07-06 15:50:48 +00:00
isolate [vm/ffi] Weak RawReceivePorts and NativeCallables 2023-08-14 02:30:11 +00:00
js [dart:js_interop] Add/fix some js_interop helpers 2023-09-23 18:32:59 +00:00
js_interop_unsafe [dart:js_interop] Add/fix some js_interop helpers 2023-09-23 18:32:59 +00:00
math Spelling tests 2023-01-19 16:24:29 +00:00
mirrors [gardening] Resolve _NativeCallableIsolateLocal fuzzer TODO 2023-08-29 06:42:58 +00:00
typed_data [typed_data] Deprecate UnmodifiableUint8ListView and friends 2023-10-20 17:14:48 +00:00
web [web] remove mirrors patch for web compilers. 2020-07-16 00:12:22 +00:00
lib.status [dart2js] Disable Timeline is performance.measure is absent 2023-10-17 20:23:43 +00:00
lib_analyzer.status Set up new test suites for migrating the tests to NNBD. 2019-11-19 00:18:43 +00:00
lib_app_jit.status Set up new test suites for migrating the tests to NNBD. 2019-11-19 00:18:43 +00:00
lib_dart2js.status [dart2wasm] Rename the dart:wasm library to dart:_wasm. 2023-04-04 11:52:18 +00:00
lib_dartdevc.status [ddc] Unskip tests on canary configs 2023-09-19 20:59:33 +00:00
lib_kernel.status [gardening] Mark all tests as slow in debug-ia32 mode 2022-07-21 10:22:45 +00:00
lib_precompiled.status [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
lib_vm.status [test] Remove ARM64-specific status entries. 2023-10-09 19:30:29 +00:00