Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index fa3a5563e5c3714acbc74a330c54b6f3e4c36bc7..13a5c3e6e15ae95e5d6dccc1f15f195b9d25430c 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -6,6 +6,7 @@ |
#define V8_FACTORY_H_ |
#include "src/isolate.h" |
+#include "src/messages.h" |
namespace v8 { |
namespace internal { |
@@ -536,11 +537,20 @@ class Factory FINAL { |
Handle<Object> NewError(const char* maker, const char* message, |
Vector<Handle<Object> > args); |
Handle<Object> NewError(const char* message, Vector<Handle<Object> > args); |
+ Handle<Object> NewError(const char* maker, |
+ MessageTemplate::Template template_index, |
+ Handle<Object> arg0, Handle<Object> arg1, |
+ Handle<Object> arg2); |
+ |
Handle<Object> NewError(Handle<String> message); |
Handle<Object> NewError(const char* constructor, Handle<String> message); |
Handle<Object> NewTypeError(const char* message, |
Vector<Handle<Object> > args); |
+ Handle<Object> NewTypeError(MessageTemplate::Template template_index, |
+ Handle<Object> arg0 = Handle<Object>(), |
+ Handle<Object> arg1 = Handle<Object>(), |
+ Handle<Object> arg2 = Handle<Object>()); |
Handle<Object> NewTypeError(Handle<String> message); |
Handle<Object> NewRangeError(const char* message, |