8aa5e2dbca
* 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>
252 B
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.