Index: tests/language/null_test.dart |
diff --git a/tests/language/null_test.dart b/tests/language/null_test.dart |
index c499c50299168a7b3685bbd9254efee0dabcbc22..83ffd7b3d1b02f56293f7913b14ef7cd259fdda3 100644 |
--- a/tests/language/null_test.dart |
+++ b/tests/language/null_test.dart |
@@ -37,7 +37,10 @@ class Generic2<T, S> { |
// at compile time. If the result is computed at compile time, the dynamic code |
// will not be tested. |
confuse(x) { |
- try { throw [x]; } on dynamic catch (e) { return e[0]; } |
+ try { |
+ if (new DateTime.now().millisecondsSinceEpoch == 42) x = 42; |
+ throw [x]; |
+ } on dynamic catch (e) { return e[0]; } |
return 42; |
} |