Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 106f3d75d3d27775ba2d13f6e27989f4521a3903..9f359bbc6d37b94e0de66439cd83b987a86bc14c 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1080,6 +1080,13 @@ |
} |
+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); |
} |
@@ -1177,24 +1184,9 @@ |
} |
-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); |
+Handle<Object> Factory::NewError(const char* message, |
+ Vector<Handle<Object> > args) { |
+ return NewError("MakeError", message, args); |
} |