Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index fca1e1c1ca8abc821566f8e697fd591c7705e098..0e66ec6268268f42b439a2acdf03693900266749 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1076,8 +1076,20 @@ |
} |
+Handle<Object> Factory::NewTypeError(const char* message, |
+ Vector<Handle<Object> > args) { |
+ return NewError("MakeTypeError", message, args); |
+} |
+ |
+ |
Handle<Object> Factory::NewTypeError(Handle<String> message) { |
return NewError("$TypeError", message); |
+} |
+ |
+ |
+Handle<Object> Factory::NewRangeError(const char* message, |
+ Vector<Handle<Object> > args) { |
+ return NewError("MakeRangeError", message, args); |
} |