Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 6321132f441f17564262d73b47ec49cc9852f407..a69a7ee74730351ce6f38fd8ab451b2cad8fb4d3 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -140,8 +140,8 @@ class Factory V8_FINAL { |
PretenureFlag pretenure = NOT_TENURED); |
// Create a new cons string object which consists of a pair of strings. |
- Handle<String> NewConsString(Handle<String> left, |
- Handle<String> right); |
+ MUST_USE_RESULT MaybeHandle<String> NewConsString(Handle<String> left, |
+ Handle<String> right); |
Handle<ConsString> NewRawConsString(String::Encoding encoding); |
@@ -433,6 +433,11 @@ class Factory V8_FINAL { |
Vector< Handle<Object> > args); |
Handle<Object> NewRangeError(Handle<String> message); |
+ Handle<Object> NewInvalidStringLengthError() { |
+ return NewRangeError("invalid_string_length", |
+ HandleVector<Object>(NULL, 0)); |
+ } |
+ |
Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
Handle<Object> NewSyntaxError(Handle<String> message); |