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

Unified Diff: tests/language/deferred_constraints_type_annotation_old_syntax_test.dart

Issue 232563006: Insert checks before deferred calls and accesses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Correct update to co19 Created 6 years, 8 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/language/deferred_constraints_type_annotation_old_syntax_test.dart
diff --git a/tests/language/deferred_constraints_type_annotation_old_syntax_test.dart b/tests/language/deferred_constraints_type_annotation_old_syntax_test.dart
index 6bca41975c3472f9c66ac8e68e8df2522a1c5743..7cc45ce28b2a196f1f653b0e97d33613d8abe94d 100644
--- a/tests/language/deferred_constraints_type_annotation_old_syntax_test.dart
+++ b/tests/language/deferred_constraints_type_annotation_old_syntax_test.dart
@@ -18,7 +18,7 @@ main() {
lib.C a = null; /// type_annotation_null: static type warning
Expect.throws(() { /// new_before_load: static type warning
lib.C a = new lib.C(); /// new_before_load: continued
- }, (e) => e is NoSuchMethodError); /// new_before_load: continued
+ }, (e) => e is Error); /// new_before_load: continued
// In this case we do not defer C.
lib2.C a1 = new lib2.C(); /// type_annotation_non_deferred: continued
« no previous file with comments | « tests/compiler/dart2js_extra/deferred/deferred_function_test.dart ('k') | tests/language/deferred_not_loaded_check_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698