Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 749819c057b96a248c9a33609eff6a34bd5a4080..708723dde900485a385441429b1decfa711ea63d 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -3201,17 +3201,15 @@ class PromiseDebugEventScope { |
is_debug_active_(isolate_->debug()->is_active() && id_->IsNumber() && |
name_->IsString()) { |
if (is_debug_active_) { |
- isolate_->debug()->OnAsyncTaskEvent( |
- isolate_->factory()->will_handle_string(), id_, |
- Handle<String>::cast(name_)); |
+ isolate_->debug()->OnAsyncTaskEvent(debug::WillHandle, id_, |
+ Handle<String>::cast(name_)); |
} |
} |
~PromiseDebugEventScope() { |
if (is_debug_active_) { |
- isolate_->debug()->OnAsyncTaskEvent( |
- isolate_->factory()->did_handle_string(), id_, |
- Handle<String>::cast(name_)); |
+ isolate_->debug()->OnAsyncTaskEvent(debug::DidHandle, id_, |
+ Handle<String>::cast(name_)); |
} |
} |