| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 1aafd0b709f0856879a529a74102bf435705e40a..d21888ba42bbd25dcb90a8d579d7c2423925ccb9 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8900,9 +8900,7 @@ void Debug::ProcessDebugMessages(Isolate* isolate) {
|
|
|
|
|
| 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);
|
| }
|
|
|
|
|
| @@ -8955,7 +8953,9 @@ bool debug::SetDebugEventListener(Isolate* isolate, debug::EventCallback that,
|
| }
|
|
|
| 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());
|
| }
|
|
|
| MaybeLocal<Value> debug::Call(Local<Context> context,
|
|
|