blob: 37f9137143c5c4351b59852a3efc883dde660f70 [file] [log] [blame]
// Copyright (c) 2011, 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.
/// @assertion The current exception is the last unhandled exception thrown.
/// @description Checks the current exception is the last unhandled exception
/// thrown.
/// @author kaigorodov
import '../../../Utils/expect.dart';
main() {
var last = "fail2";
try {
throw "fail1";
} catch (e) {
try {
throw last;
} catch (e) {
Expect.equals(last, e);
}
}
}