b561850fb5
This CL copied stacktrace test ccases from dart2js and updates them to DDC (mostly kernel version). Some tests fail (marked in status file) because of dartbug.com/31451. Bug: Change-Id: If89c292eedb162fe7fe2832e909654e4ee083340 Reviewed-on: https://dart-review.googlesource.com/23500 Reviewed-by: Johnni Winther <johnniwinther@google.com>
17 lines
389 B
Dart
17 lines
389 B
Dart
// Copyright (c) 2017, 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.
|
|
|
|
main() {
|
|
/*1:main*/ test();
|
|
}
|
|
|
|
test() {
|
|
try {
|
|
/*2:test*/ throw '>ExceptionMarker<';
|
|
// ignore: UNUSED_CATCH_CLAUSE
|
|
} on String catch (e) {
|
|
rethrow;
|
|
}
|
|
}
|