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"); |