Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index a4b741a2e6e5a50b740f935526984e621ac6d327..4aba6eeb766c689a791d1ab9271d0bd79b1f2fd2 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -549,8 +549,9 @@ class Factory final { |
Handle<Object> NewError(const char* maker, |
MessageTemplate::Template template_index, |
- Handle<Object> arg0, Handle<Object> arg1, |
- Handle<Object> arg2); |
+ Handle<Object> arg0 = Handle<Object>(), |
+ Handle<Object> arg1 = Handle<Object>(), |
+ Handle<Object> arg2 = Handle<Object>()); |
Handle<Object> NewError(MessageTemplate::Template template_index, |
Handle<Object> arg0 = Handle<Object>(), |
@@ -656,13 +657,12 @@ class Factory final { |
Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec); |
// Allocates a new JSMessageObject object. |
- Handle<JSMessageObject> NewJSMessageObject( |
- Handle<String> type, |
- Handle<JSArray> arguments, |
- int start_position, |
- int end_position, |
- Handle<Object> script, |
- Handle<Object> stack_frames); |
+ Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, |
+ Handle<Object> argument, |
+ int start_position, |
+ int end_position, |
+ Handle<Object> script, |
+ Handle<Object> stack_frames); |
Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |