Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(898)

Unified Diff: tests/compiler/dart2js_extra/22776.dart

Issue 998983002: Ensure that descriptors have a prototype. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added missing test. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js_extra/22776.dart
diff --git a/tests/language/regress_22579_test.dart b/tests/compiler/dart2js_extra/22776.dart
similarity index 55%
copy from tests/language/regress_22579_test.dart
copy to tests/compiler/dart2js_extra/22776.dart
index 76c8f42463fe87b21372d1f2da3a768cf0482fb6..c5af71756a442e6ce9329e2db4a27c0b23b525a9 100644
--- a/tests/language/regress_22579_test.dart
+++ b/tests/compiler/dart2js_extra/22776.dart
@@ -2,24 +2,21 @@
// 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.
-import "dart:async";
-import "package:expect/expect.dart";
+// Regression test for http://dartbug.com/22776/
-foo() async {
- try {
- await 1;
- } catch(e) {
- }
- throw "error";
-}
+import "package:expect/expect.dart";
+class A {}
-main() async {
- var error = "no error";
+main() {
try {
- await foo();
+ print(id(new Duration(milliseconds: 10)));
+ print(id(3) ~/ new A());
} catch (e) {
- error = e;
+ print("Error '$e' ${e.runtimeType}");
}
- Expect.equals("error", error);
}
+@AssumeDynamic()
+@NoInline()
+id(x) => x;
+

Powered by Google App Engine
This is Rietveld 408576698