f04bc85e4f
- make sure nested blocks scopes are visited - make sure variable definitions do not leak beyond block scopes - properly collect scopes for loops, if statements, constructors - add calculation of fileEndOffsets for blocks - save block file offsets to dill - update binary format version - change kernel readers and writers to read and write block offsets - change vm readers to read and block offsets for new version - add missing fileOffsets and fileEndOffsets on functions for late fields - add missing fileOffsets and fileEndOffsets on functions for extensions - add errors on failures to find scope - find libraries for private fields correctly - add more expression compilation tests - add test to verify fileOffsets and fileEndOffsets are set for SDK summary (will add full dill tests later) Closes: https://github.com/dart-lang/sdk/issues/40278 Related: https://github.com/dart-lang/sdk/issues/34942 Change-Id: I5bc1bb645543045b689d8d61069ee77dc4ee9025 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/167541 Commit-Queue: Anna Gringauze <annagrin@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
16 lines
419 B
Dart
16 lines
419 B
Dart
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// @dart = 2.7
|
|
|
|
main() {
|
|
// This call is on the stack when the error is thrown.
|
|
/*1:main*/ test();
|
|
}
|
|
|
|
@pragma('dart2js:noInline')
|
|
test() async /*2:test*/ {
|
|
/*4:test*/ throw '>ExceptionMarker<';
|
|
}
|