Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 075ea0cdeb38bba4ab2c08728dab9b4153efa445..1bc86e04f51da1dd2052db1638f216da6b90cda5 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -937,6 +937,21 @@ Handle<PromiseContainer> Factory::NewPromiseContainer( |
return result; |
} |
+Handle<PromiseHandleInfo> Factory::NewPromiseHandleInfo( |
+ Handle<Object> value, Handle<Object> tasks, Handle<Object> deferred, |
+ Handle<Object> before_debug_event, Handle<Object> after_debug_event, |
+ Handle<Context> reaction_context) { |
+ Handle<PromiseHandleInfo> result = |
+ Handle<PromiseHandleInfo>::cast(NewStruct(PROMISE_HANDLE_INFO_TYPE)); |
+ result->set_value(*value); |
+ result->set_tasks(*tasks); |
+ result->set_deferred(*deferred); |
+ result->set_before_debug_event(*before_debug_event); |
+ result->set_after_debug_event(*after_debug_event); |
+ result->set_reaction_context(*reaction_context); |
+ return result; |
+} |
+ |
Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( |
int aliased_context_slot) { |
Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( |