Find a file
Jens Johansen 73a54a30d5 [fasta] Create a 'constant helper' class which will throw on illegal 'constant' expressions
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 .
2017-08-03 08:38:29 +02:00
build Exclude Observatory assets from PRODUCT build dart, dart_precompiled_runtime 2017-06-30 08:09:37 -07:00
client Remove old annotated_steps buildbot scripts and dispatcher 2017-05-23 16:17:02 +02:00
docs Add first newsletter. 2017-07-28 21:31:00 +02:00
pkg Fix DDC buildbot so it is green 2017-08-02 19:57:56 -07:00
runtime [kernel] Use helper functions to minimize assumptions about dill layout. 2017-08-03 08:37:27 +02:00
samples Revert "Revert "Revert "Revert "Refactor test option parsing code."""" 2017-05-26 15:04:55 -07:00
samples-dev Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
sdk [fasta] Create a 'constant helper' class which will throw on illegal 'constant' expressions 2017-08-03 08:38:29 +02:00
tests Fix DDC buildbot so it is green 2017-08-02 19:57:56 -07:00
third_party Update checked-in d8 shell to version 6.2.0 2017-07-27 10:36:19 +02:00
tools Fix a couple of things causing bot redness: 2017-08-02 14:54:07 -07:00
utils Include platform.dill files in sdk builds 2017-07-26 14:50:49 -07:00
.clang-format VM: Re-format to use at most one newline between functions 2017-07-13 08:08:37 -07:00
.gitattributes Restore line endings of files that should be CRLF. 2016-12-09 11:09:55 -08:00
.gitignore Git ignore vscode project files. 2017-03-23 15:26:06 -07:00
.gn Starting work on full GN build 2016-09-23 07:47:36 -07:00
.mailmap Add .mailmap file. 2015-05-18 19:33:16 +02:00
.packages Update observatory_pub_packages dependency 2017-07-31 13:03:35 -07:00
.travis.yml Allow FF to fail on travis 2017-07-12 14:30:39 -07:00
AUTHORS Add Cristian Almstrand to AUTHORS 2015-07-16 09:51:56 -07:00
BUILD.gn Include platform.dill files in sdk builds 2017-07-26 14:50:49 -07:00
CHANGELOG.md [corelib] dart:developer timeline flow events 2017-07-31 07:46:52 -07:00
codereview.settings Explicitly set Rietveld in codereview.settings 2017-07-19 16:37:45 +02:00
create_sdk.gyp Make list_files.py and list_dart_files.py return absolute paths for GN 2016-12-13 10:01:28 -08:00
dart.gyp Remove dart_noopt and related parts from the VM. 2017-01-11 16:55:55 -08:00
DEPS Update observatory_pub_packages dependency 2017-07-31 13:03:35 -07:00
LICENSE Remove the Dromaeo and TodoMVC samples. 2016-01-11 13:09:26 -08:00
PATENTS
PRESUBMIT.py Don't treat unparseable files as presubmit dartfmt errors. 2017-07-25 17:05:11 -07:00
README.dart-sdk remove docgen from the sdk 2015-09-18 13:18:10 -07:00
README.md [gardening] Whitespace change to trigger bots. 2017-04-28 10:08:58 -07:00
WATCHLISTS [infra] Fix Observatory watchlist. 2017-06-13 16:21:35 -07:00

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.

License & patents

See LICENSE and PATENTS.