Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 0ab312b2b7e1b283a307a9070823725fcb888565..8c9b5b56ac4389898cfe433f5bb674b932a38a1b 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -556,8 +556,7 @@ class Factory final { |
Handle<Object> NewRangeError(Handle<String> message); |
Handle<Object> NewInvalidStringLengthError() { |
- return NewRangeError("invalid_string_length", |
- HandleVector<Object>(NULL, 0)); |
+ return NewRangeError(MessageTemplate::kInvalidStringLength); |
} |
Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
@@ -586,6 +585,11 @@ class Factory final { |
Handle<Object> arg1 = Handle<Object>(), |
Handle<Object> arg2 = Handle<Object>()); |
+ Handle<Object> NewRangeError(MessageTemplate::Template template_index, |
+ Handle<Object> arg0 = Handle<Object>(), |
+ Handle<Object> arg1 = Handle<Object>(), |
+ Handle<Object> arg2 = Handle<Object>()); |
+ |
Handle<Object> NewEvalError(MessageTemplate::Template template_index, |
Handle<Object> arg0 = Handle<Object>(), |
Handle<Object> arg1 = Handle<Object>(), |