Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 9f359bbc6d37b94e0de66439cd83b987a86bc14c..106f3d75d3d27775ba2d13f6e27989f4521a3903 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1080,13 +1080,6 @@ Handle<Object> Factory::NewTypeError(const char* message, |
} |
-Handle<Object> Factory::NewTypeError(MessageTemplate::Template template_index, |
- Handle<Object> arg0, Handle<Object> arg1, |
- Handle<Object> arg2) { |
- return NewError("MakeTypeError2", template_index, arg0, arg1, arg2); |
-} |
- |
- |
Handle<Object> Factory::NewTypeError(Handle<String> message) { |
return NewError("$TypeError", message); |
} |
@@ -1184,9 +1177,24 @@ Handle<Object> Factory::NewEvalError(const char* message, |
} |
-Handle<Object> Factory::NewError(const char* message, |
- Vector<Handle<Object> > args) { |
- return NewError("MakeError", message, args); |
+Handle<Object> Factory::NewError(MessageTemplate::Template template_index, |
+ Handle<Object> arg0, Handle<Object> arg1, |
+ Handle<Object> arg2) { |
+ return NewError("MakeError", template_index, arg0, arg1, arg2); |
+} |
+ |
+ |
+Handle<Object> Factory::NewTypeError(MessageTemplate::Template template_index, |
+ Handle<Object> arg0, Handle<Object> arg1, |
+ Handle<Object> arg2) { |
+ return NewError("MakeTypeError", template_index, arg0, arg1, arg2); |
+} |
+ |
+ |
+Handle<Object> Factory::NewEvalError(MessageTemplate::Template template_index, |
+ Handle<Object> arg0, Handle<Object> arg1, |
+ Handle<Object> arg2) { |
+ return NewError("MakeEvalError", template_index, arg0, arg1, arg2); |
} |