Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 094ada8ecbd976fb9d68b9fa66edc20c6f044abb..0aafa62b20014e631de22dfcc95eecb5e1892616 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1013,9 +1013,8 @@ Handle<Struct> Factory::NewStruct(InstanceType type) { |
Handle<PromiseResolveThenableJobInfo> Factory::NewPromiseResolveThenableJobInfo( |
Handle<JSReceiver> thenable, Handle<JSReceiver> then, |
- Handle<JSFunction> resolve, Handle<JSFunction> reject, |
- Handle<Object> debug_id, Handle<Object> debug_name, |
- Handle<Context> context) { |
+ Handle<JSFunction> resolve, Handle<JSFunction> reject, int debug_id, |
+ int debug_name, Handle<Context> context) { |
Handle<PromiseResolveThenableJobInfo> result = |
Handle<PromiseResolveThenableJobInfo>::cast( |
NewStruct(PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE)); |
@@ -1023,8 +1022,8 @@ Handle<PromiseResolveThenableJobInfo> Factory::NewPromiseResolveThenableJobInfo( |
result->set_then(*then); |
result->set_resolve(*resolve); |
result->set_reject(*reject); |
- result->set_debug_id(*debug_id); |
- result->set_debug_name(*debug_name); |
+ result->set_debug_id(debug_id); |
+ result->set_debug_name(debug_name); |
result->set_context(*context); |
return result; |
} |
@@ -1041,8 +1040,8 @@ Handle<PromiseReactionJobInfo> Factory::NewPromiseReactionJobInfo( |
result->set_deferred_promise(*deferred_promise); |
result->set_deferred_on_resolve(*deferred_on_resolve); |
result->set_deferred_on_reject(*deferred_on_reject); |
- result->set_debug_id(isolate()->heap()->undefined_value()); |
- result->set_debug_name(isolate()->heap()->undefined_value()); |
+ result->set_debug_id(kDebugPromiseFirstID); |
+ result->set_debug_name(kDebugNotActive); |
result->set_context(*context); |
return result; |
} |