commit | 48245c1064db59ac5be23fc16fc00a2120e925ae | [log] [tgz] |
---|---|---|
author | Kallen Tu <kallentu@google.com> | Thu Aug 17 19:48:28 2023 +0000 |
committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 17 19:48:28 2023 +0000 |
tree | 38f7f1cc2a782846bde996fa7de70d30333712b0 | |
parent | 7703609cc1ba12b4e675b7a543313b73704d7209 [diff] |
[analyzer] Issue 53163: Fix crash with unresolved object in String length for const expressions. Unresolved types would throw in `stringLength` and we don't handle them the same way we do with the other operators. Throwing EvaluationExceptions is the problem here, but that's for another CL. In the meantime, this CL makes `stringLength` consistent to the other operators in the DartObjectComputer. Fixes https://github.com/dart-lang/sdk/issues/53163 Bug: https://github.com/dart-lang/sdk/issues/53163 Change-Id: Ib99b61736d699056fa3c379e4d9c79756a4425f3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319562 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Kallen Tu <kallentu@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.