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

Unified Diff: vm/exceptions.cc

Issue 11293163: Throw illegal argument exception when (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/exceptions.h ('k') | vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/exceptions.cc
===================================================================
--- vm/exceptions.cc (revision 14907)
+++ vm/exceptions.cc (working copy)
@@ -396,6 +396,9 @@
Library& library = Library::Handle();
String& class_name = String::Handle();
switch (type) {
+ case kNone:
+ UNREACHABLE();
+ break;
case kRange:
library = Library::CoreLibrary();
class_name = Symbols::New("RangeError");
@@ -432,6 +435,10 @@
library = Library::CoreLibrary();
class_name = Symbols::New("IllegalJSRegExpException");
break;
+ case kArgumentError:
+ library = Library::CoreLibrary();
+ class_name = Symbols::New("ArgumentError");
+ break;
case kIsolateSpawn:
library = Library::IsolateLibrary();
class_name = Symbols::New("IsolateSpawnException");
« no previous file with comments | « vm/exceptions.h ('k') | vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698