mirror of
https://github.com/dart-lang/sdk
synced 2024-09-21 03:02:43 +00:00
73a54a30d5
Currently kernel fails a number of test because too much is allowed to be constant. Examples includes const x = "hello " * 4; // yielding "hello hello hello hello " const y = "hello".leng; // crashing the VM The idea behing the helper class is, that fasta can generate those as for instance var c = new _ConstantHelper(); const x = c.times("hello ", 4, () => thow yadayada); where - upon evaluating it in for instance the VMs constant evaluator - the helper will see that "hello " is neiher an integer nor null, and thus execute the given onError function. This is only one step towards that; it will still have to be hooked up in fasta, and constant evaluators (e.g. in the VM, I suppose there's also one in dart2js etc) might need to be updated to be able to execute it. R=ahe@google.com Review-Url: https://codereview.chromium.org/2982843002 . |
||
---|---|---|
build | ||
client | ||
docs | ||
pkg | ||
runtime | ||
samples | ||
samples-dev | ||
sdk | ||
tests | ||
third_party | ||
tools | ||
utils | ||
.clang-format | ||
.gitattributes | ||
.gitignore | ||
.gn | ||
.mailmap | ||
.packages | ||
.travis.yml | ||
AUTHORS | ||
BUILD.gn | ||
CHANGELOG.md | ||
codereview.settings | ||
create_sdk.gyp | ||
dart.gyp | ||
DEPS | ||
LICENSE | ||
PATENTS | ||
PRESUBMIT.py | ||
README.dart-sdk | ||
README.md | ||
WATCHLISTS |
Dart
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Using Dart
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
Building Dart
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.
Contributing to Dart
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.