Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Unified Diff: src/isolate.cc

Issue 2578923002: [inspector] async stacks for Promise.then calls... (Closed)
Patch Set: use set_private instead of weak map Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_));
}
}

Powered by Google App Engine
This is Rietveld 408576698