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

Unified Diff: runtime/lib/error.dart

Issue 8569013: Do not allow allocation of FallThroughError and AssertionError by the user. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/error.dart
===================================================================
--- runtime/lib/error.dart (revision 1669)
+++ runtime/lib/error.dart (working copy)
@@ -9,7 +9,7 @@
throw const UnsupportedOperationException(
"AssertionError can only be allocated by the VM");
}
- static throwNew(int assertionStart, int assertionEnd)
+ static _throwNew(int assertionStart, int assertionEnd)
native "AssertionError_throwNew";
String toString() {
return "Failed assertion: '$failedAssertion' is not true " +
@@ -41,7 +41,7 @@
throw const UnsupportedOperationException(
"FallThroughError can only be allocated by the VM");
}
- static throwNew(int case_clause_pos) native "FallThroughError_throwNew";
+ static _throwNew(int case_clause_pos) native "FallThroughError_throwNew";
String toString() {
return "Switch case fall-through in $url at line $line.";
}
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698