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

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: Typo 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e9f12ea96362d55bb9fa50148f31bb5ea0c2e8d0 100644
--- a/tests/language/regress_22579_test.dart
+++ b/tests/compiler/dart2js_extra/22776.dart
@@ -2,24 +2,22 @@
// 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";
+// Regression test for http://dartbug.com/22776/
+
import "package:expect/expect.dart";
-foo() async {
- try {
- await 1;
- } catch(e) {
- }
- throw "error";
-}
+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;
+
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/reflection_data_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698