blob: eb9c03c3bbb52b252a1ad23ee7a71c912ce48f0e [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
* @reviewer rodionov
*/
import "../../Utils/expect.dart";
main() {
var last="fail2";
try {
throw "fail1";
} catch(e) {
try {
throw last;
} catch(e) {
Expect.equals(last, e);
}
}
}