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

Unified Diff: src/api.cc

Issue 2595413003: Revert of [debugger] deprecate v8::Debug:GetDebugContext. (Closed)
Patch Set: 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
« no previous file with comments | « include/v8-debug.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 2e2f3b28b9fcdc99e9089dc43bcd3284d1b95691..04e7c894d4584e3d4cce1ad50b73b22885acfff4 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -8827,7 +8827,9 @@
Local<Context> Debug::GetDebugContext(Isolate* isolate) {
- return debug::GetDebugContext(isolate);
+ i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
+ ENTER_V8(i_isolate);
+ return Utils::ToLocal(i_isolate->debug()->GetDebugContext());
}
@@ -8880,9 +8882,7 @@
}
Local<Context> debug::GetDebugContext(Isolate* isolate) {
- i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
- ENTER_V8(i_isolate);
- return Utils::ToLocal(i_isolate->debug()->GetDebugContext());
+ return Debug::GetDebugContext(isolate);
}
MaybeLocal<Value> debug::Call(Local<Context> context,
« no previous file with comments | « include/v8-debug.h ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698