Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index f9329aebde8117c128ce6b95c55385469975e987..ab48f28ddba348bd276b1847c20945f5930ba56c 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -507,40 +507,40 @@ class Factory V8_FINAL { |
// Interface for creating error objects. |
- Handle<Object> NewError(const char* maker, const char* message, |
- Handle<JSArray> args); |
+ MaybeHandle<Object> NewError(const char* maker, const char* message, |
+ Handle<JSArray> args); |
Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); |
- 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(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(Handle<String> message); |
- |
- Handle<Object> NewRangeError(const char* message, |
- Vector< Handle<Object> > args); |
- Handle<Object> NewRangeError(Handle<String> message); |
- |
- Handle<Object> NewInvalidStringLengthError() { |
+ MaybeHandle<Object> NewError(const char* maker, const char* message, |
+ Vector<Handle<Object> > args); |
+ MaybeHandle<Object> NewError(const char* message, |
+ Vector<Handle<Object> > args); |
+ MaybeHandle<Object> NewError(Handle<String> message); |
+ MaybeHandle<Object> NewError(const char* constructor, Handle<String> message); |
+ |
+ MaybeHandle<Object> NewTypeError(const char* message, |
+ Vector<Handle<Object> > args); |
+ MaybeHandle<Object> NewTypeError(Handle<String> message); |
+ |
+ MaybeHandle<Object> NewRangeError(const char* message, |
+ Vector<Handle<Object> > args); |
+ MaybeHandle<Object> NewRangeError(Handle<String> message); |
+ |
+ MaybeHandle<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); |
+ MaybeHandle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
+ MaybeHandle<Object> NewSyntaxError(Handle<String> message); |
- Handle<Object> NewReferenceError(const char* message, |
- Vector< Handle<Object> > args); |
- Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); |
- Handle<Object> NewReferenceError(Handle<String> message); |
+ MaybeHandle<Object> NewReferenceError(const char* message, |
+ Vector<Handle<Object> > args); |
+ MaybeHandle<Object> NewReferenceError(const char* message, |
+ Handle<JSArray> args); |
+ MaybeHandle<Object> NewReferenceError(Handle<String> message); |
- Handle<Object> NewEvalError(const char* message, |
- Vector< Handle<Object> > args); |
+ MaybeHandle<Object> NewEvalError(const char* message, |
+ Vector<Handle<Object> > args); |
Handle<String> NumberToString(Handle<Object> number, |
bool check_number_string_cache = true); |