From f7e6c02e225f540deabe2a86d7e51956728926e7 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 28 Sep 2016 11:35:45 -0700 Subject: [PATCH] Document thrown errors during function parsing Other cleanup Closes https://github.com/dart-lang/sdk/issues/27376 R=whesse@google.com Review URL: https://codereview.chromium.org/2368413003 . --- CHANGELOG.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4285fc9e74e..6fdacec45d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ [article on native extensions](https://www.dartlang.org/articles/dart-vm/native-extensions) to reflect the VM's improved behavior. -* Linux builds of the VM will now use the tcmalloc library for memory +* Linux builds of the VM will now use the `tcmalloc` library for memory allocation. This has the advantages of better debugging and profiling support and faster small allocations, with the cost of slightly larger initial memory footprint, and slightly slower large allocations. @@ -15,13 +15,16 @@ * We have improved the way the VM searches for trusted root certificates for secure socket connections on Linux. First, the VM will look for trusted root certificates in standard locations on the file system - (/etc/pki/tls/certs/ca-bundle.crt followed by /etc/ssl/certs), and only if + (`/etc/pki/tls/certs/ca-bundle.crt` followed by `/etc/ssl/certs`), and only if these do not exist will it fall back on the builtin trusted root certificates. This behavior can be overridden on Linux with the new flags - --root-certs-file and --root-certs-cache. The former is the path to a file + `--root-certs-file` and `--root-certs-cache`. The former is the path to a file containing the trusted root certificates, and the latter is the path to a directory containing root certificate files hashed using `c_rehash`. +* The VM now throws a catchable `Error` when method compilation fails. This + allows easier debugging of syntax errors, especially when testing. + ### Core library changes * `dart:core`: Remove deprecated `Resource` class. @@ -29,7 +32,7 @@ * `dart:async` * `Future.wait` now catches synchronous errors and returns them in the returned Future. - * More aggressively returns a Future on Stream.cancel operations. + * More aggressively returns a `Future` on `Stream.cancel` operations. Discourages to return `null` from `cancel`. * Fixes a few bugs where the cancel future wasn't passed through transformations.