dart-sdk/tests
Martin Kustermann 98808385d0 [dart2wasm] Fix bug in [Finalizer] implementation
The recent rewrite of [0] kept the existing semantics of the finalizer
implementation but migrated to the new interop semantics.

Turns out in that existing semantics there's a bug, namely that it
casted the peer object of to a non-nullable [Object] which is incorrect.

This CL
* fixes the cast to non-nullable [Object]
* moves the (currently) web-specific tests for
  [Finalizer]/[WeakReference] into `corelib` so it runs on all backends
* expands the finalizer tests to check finalizers get invoked
* expands the weak reference test to ensure weak reference is cleared

[0] https://dart-review.googlesource.com/c/sdk/+/363082/

Issue https://github.com/dart-lang/sdk/issues/55474

Change-Id: Ibd8c186b39100cff9e2f437f1a737034a5364830
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363581
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-04-19 11:35:27 +00:00
..
co19 [ddc] Add configuration to compile with asserts 2024-04-04 14:40:30 +00:00
corelib [dart2wasm] Fix bug in [Finalizer] implementation 2024-04-19 11:35:27 +00:00
dartdevc Revert "Tweak expect.dart library." 2024-04-09 18:10:57 +00:00
ffi [vm/ffi] Fix variadic arguments on MacOS Arm64 2024-04-17 15:42:16 +00:00
hot_reload [reload_test] Adding support for VM hot reload tests. 2024-04-07 16:39:49 +00:00
language analyzer: Correct message about const addition operator 2024-04-18 17:21:29 +00:00
lib Revert "Tweak expect.dart library." 2024-04-09 18:10:57 +00:00
macro_build add package:_macros (SDK vendored) and package:macros (pub published) 2024-03-26 18:40:00 +00:00
modular Support prebuilt macros in the incremental compiler mode for DDC 2024-04-09 07:37:26 +00:00
standalone Revert "Tweak expect.dart library." 2024-04-09 18:10:57 +00:00
web [dart2wasm] Fix bug in [Finalizer] implementation 2024-04-19 11:35:27 +00:00
legacy_status_dart2js.csv
OWNERS
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.