commit | a46de1c30cd3daf7710780c2a8a8b6e6d4a22836 | [log] [tgz] |
---|---|---|
author | Chloe Stefantsova <cstefantsova@google.com> | Mon Dec 12 00:48:13 2022 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 12 00:48:13 2022 +0000 |
tree | debe91a384ad0b98af5e9fb872d3236aa7ad2152 | |
parent | e07321ec9d4d40e7d96784ebb70971244afd3ae8 [diff] |
[cfe] Add implicit null-check on throw Throwing `null` is not supported in sound null safety. This change inserts an implicit `as Object` cast that result in a TypeError, rather than a NullThrownError, in sound mode. Closes https://github.com/dart-lang/sdk/issues/49198 TEST=Covered by the existing tests Change-Id: I041baf95becd2df1b940fdff7cde398a4e391ee7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247546 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.