Files
sdk/tests/language_2/stacktrace_test.dart
T
Mark Zhou 86d47dc5b4 Fixing some tests that are failing in all/most backends.
Change-Id: I91bac2a5597b654082c734decdb948c21d1f5e59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100927
Reviewed-by: Leaf Petersen <leafp@google.com>
2019-05-03 23:36:30 +00:00

18 lines
500 B
Dart

// Copyright (c) 2013, 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.
// Test that a stack trace is properly terminated (issue 8850).
import "package:expect/expect.dart";
void main() {
var ex = new Exception("fail");
try {
throw ex;
} on Exception catch (e, st) {
Expect.equals(ex, e);
Expect.isTrue(st.toString().length > 0);
}
}