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

Unified Diff: tests/language/exception_test.dart

Issue 10392016: Fix issue 2939, revert previous change that accepted null as excpetion objects: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « tests/co19/co19-runtime.status ('k') | tests/language/is_object_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/exception_test.dart
===================================================================
--- tests/language/exception_test.dart (revision 7471)
+++ tests/language/exception_test.dart (working copy)
@@ -21,9 +21,11 @@
bool correctCatch = false;
try {
+ // This throws NullPointerException.
throw null;
} catch (String s) {
- // null exception object is caught here.
+ correctCatch = false;
+ } catch (NullPointerException e) {
correctCatch = true;
} catch (var x) {
correctCatch = false;
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/is_object_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698