Index: src/inspector/v8-debugger-script.cc |
diff --git a/src/inspector/v8-debugger-script.cc b/src/inspector/v8-debugger-script.cc |
index 200cdc71a26da41ae8bba76d30144ad5a2eca0f7..c7700d814b9a86e63192b58e584abf2299db0b7b 100644 |
--- a/src/inspector/v8-debugger-script.cc |
+++ b/src/inspector/v8-debugger-script.cc |
@@ -184,6 +184,10 @@ class ActualScript : public V8DebuggerScript { |
} |
private: |
+ v8::Local<v8::debug::Script> script() override { |
+ return m_script.Get(m_isolate); |
+ } |
+ |
String16 GetNameOrSourceUrl(v8::Local<v8::debug::Script> script) { |
v8::Local<v8::String> name; |
if (script->Name().ToLocal(&name) || script->SourceURL().ToLocal(&name)) |
@@ -259,6 +263,10 @@ class WasmVirtualScript : public V8DebuggerScript { |
void resetBlackboxedStateCache() override {} |
private: |
+ v8::Local<v8::debug::Script> script() override { |
+ return m_script.Get(m_isolate); |
+ } |
+ |
static const String16& emptyString() { |
static const String16 singleEmptyString; |
return singleEmptyString; |
@@ -306,4 +314,10 @@ void V8DebuggerScript::setSourceURL(const String16& sourceURL) { |
m_sourceURL = sourceURL; |
} |
+v8::debug::Location V8DebuggerScript::setBreakpoint( |
+ const v8::debug::Location& location, |
+ v8::Local<v8::debug::BreakPoint> breakPoint) { |
+ return script()->SetBreakPoint(location, breakPoint); |
+} |
+ |
} // namespace v8_inspector |