commit | b0ccaf75a3e189bf566efcb6bc9872ea0ab75120 | [log] [tgz] |
---|---|---|
author | Ben Konyi <bkonyi@google.com> | Wed Nov 18 20:01:04 2020 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Nov 18 20:01:04 2020 +0000 |
tree | 53ecd6783cf920718e320d12b461b50701a51c08 | |
parent | 2a6971cba300af35b72b8245fe98215da6ae3774 [diff] |
[ VM / CLI ] Fix issue where trying to snapshot a non-existent script would cause an assertion failure Passing --snapshot should result in the CLI being bypassed (`dart compile` should be used otherwise). Check to see if this option is provided when attempting to parse the script name and always populate script_name in that case. Fixes https://github.com/dart-lang/sdk/issues/43785 TEST=Added regression test to the CLI package to exercise this path. Fixed: 43785 Change-Id: Ifb67a5880f6b83c54e6deb6b0785b61fdcfc0ada Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172820 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ben Konyi <bkonyi@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, getting started, and more.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
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.