mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 00:29:50 +00:00
6b71aa1f3e
Knowing whether Dart code is running in a WebAssembly context is useful to potentially select different code paths exploiting differences in JavaScript and WASM behavior or simply to report the information to users (e.g. for crash reports). Without such a constant, one has to rely on implementation differences such as `identical(0, 0.0)` or check the available `dart:` libraries. Both are error-prone, so having a reliable constant as an alternative makes this easier. Closes https://github.com/dart-lang/sdk/issues/55694 Change-Id: Ia969641e4b78223c394cbf251805cf77a30cb0fa Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365822 Reviewed-by: Ömer Ağacan <omersa@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com> Commit-Queue: Ömer Ağacan <omersa@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> |
||
---|---|---|
.. | ||
co19 | ||
corelib | ||
dartdevc | ||
ffi | ||
hot_reload | ||
language | ||
lib | ||
macro_build | ||
modular | ||
standalone | ||
web | ||
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/tree/main/docs/Testing.md.