Chromium Code Reviews

Unified Diff: src/factory.cc

Issue 1130073005: Revert of Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/factory.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/factory.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine