blob: bcb231ad9d9f2388888d9927dd5b6a242576df0a [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);
}
}
}