68dd6f6338
Remove _RemoteStackTrace from dart:isolate and use the new version instead. R=sgjesse@google.com Review URL: https://codereview.chromium.org//1088433004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45088 260f80e4-7a28-3924-810f-c04153c831b5
30 lines
528 B
Dart
30 lines
528 B
Dart
import "dart:async";
|
|
import "package:expect/expect.dart";
|
|
|
|
class Blah implements StackTrace {
|
|
Blah(this._trace);
|
|
|
|
toString() {
|
|
return "Blah " + _trace.toString();
|
|
}
|
|
|
|
var _trace;
|
|
}
|
|
|
|
foo() {
|
|
var x = "\nBloop\nBleep\n";
|
|
return new Future.error(42, new Blah(x));
|
|
}
|
|
|
|
main() async {
|
|
try {
|
|
var x = await foo();
|
|
Expect.fail("Should not reach here.");
|
|
} on int catch (e, s) {
|
|
Expect.equals(42, e);
|
|
Expect.equals("Blah \nBloop\nBleep\n", s.toString());
|
|
return;
|
|
}
|
|
Expect.fail("Unreachable.");
|
|
}
|