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