Files
sdk/pkg/dart2wasm/docs/wasm_detection.md
T
Martin Kustermann 8aa5e2dbca [dart2wasm] Remove pkg/dart2wasm/README.md and move remaining things into pkg/dart2wasm/docs/*.md files
* removes duplicate list of options in readme file (that is available
  via `--help` already)

* add more information about checkout, namely the custom vars for
  `.gclient`

* moves remaining 2 sections into their own pkg/dart2wasm/docs/*.md file

Change-Id: I9a505b7a37cdfe6e3745933410dd1ba309e50c3b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368305
Reviewed-by: Ömer Ağacan <omersa@google.com>
2024-05-28 11:36:40 +00:00

252 B

Detecting whether code is running as WebAssembly

dart2wasm defines dart.tool.dart2wasm as true, meaning that bool.fromEnvironment('dart.tool.dart2wasm') can be used in a constant context to determine whether it was compiled to WebAssembly.