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

Unified Diff: src/isolate.cc

Issue 2578923002: [inspector] async stacks for Promise.then calls... (Closed)
Patch Set: added missing handle scope 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 8979a7b479312fe0797c5bfefcc1015029f44750..cabf6cbe336fae8a71dd653d7c8a47abccc97f4b 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -3200,17 +3200,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_));
}
}
« src/debug/debug.cc ('K') | « src/isolate.h ('k') | src/js/async-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698