| Index: src/inspector/v8-debugger-script.cc
|
| diff --git a/src/inspector/v8-debugger-script.cc b/src/inspector/v8-debugger-script.cc
|
| index f7ddd4d697759d1cd2109445f5da588a67912c91..4dbed71bb65129ab269e2dfa557c71a525cd2dd1 100644
|
| --- a/src/inspector/v8-debugger-script.cc
|
| +++ b/src/inspector/v8-debugger-script.cc
|
| @@ -160,7 +160,7 @@ class ActualScript : public V8DebuggerScript {
|
| bool getPossibleBreakpoints(
|
| const v8::debug::Location& start, const v8::debug::Location& end,
|
| bool restrictToFunction,
|
| - std::vector<v8::debug::Location>* locations) override {
|
| + std::vector<v8::debug::BreakLocation>* locations) override {
|
| v8::HandleScope scope(m_isolate);
|
| v8::Local<v8::debug::Script> script = m_script.Get(m_isolate);
|
| return script->GetPossibleBreakpoints(start, end, restrictToFunction,
|
| @@ -228,7 +228,7 @@ class WasmVirtualScript : public V8DebuggerScript {
|
| bool getPossibleBreakpoints(
|
| const v8::debug::Location& start, const v8::debug::Location& end,
|
| bool restrictToFunction,
|
| - std::vector<v8::debug::Location>* locations) override {
|
| + std::vector<v8::debug::BreakLocation>* locations) override {
|
| v8::HandleScope scope(m_isolate);
|
| v8::Local<v8::debug::Script> script = m_script.Get(m_isolate);
|
| String16 v8ScriptId = String16::fromInteger(script->Id());
|
| @@ -249,9 +249,9 @@ class WasmVirtualScript : public V8DebuggerScript {
|
|
|
| bool success = script->GetPossibleBreakpoints(
|
| translatedStart, translatedEnd, restrictToFunction, locations);
|
| - for (v8::debug::Location& loc : *locations) {
|
| - TranslateV8LocationToProtocolLocation(m_wasmTranslation, &loc, v8ScriptId,
|
| - scriptId());
|
| + for (v8::debug::BreakLocation& loc : *locations) {
|
| + TranslateV8LocationToProtocolLocation(
|
| + m_wasmTranslation, &loc.GetLocation(), v8ScriptId, scriptId());
|
| }
|
| return success;
|
| }
|
|
|