2bdcfb7035
We can't generate a virtual call to `Object.==` in generated code as `Object.==` may not be added to the dispatch table, even with `@pragma(wasm:entry-point)`. Instead this adds a top-level `_runtimeTypeEquals` function that calls `==` on the `_Type` argument. Effectively this forces adding `_Type.==` to the dispatch table and calls it virtually. Fixes #54926. Change-Id: Ice3306ed00f66c8abedb3ef11b58c15296457eb0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352900 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Ömer Ağacan <omersa@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.