Index: src/inspector/v8-debugger.cc |
diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc |
index f4980e2f87e1de3d4916b2c526dd7c2c0d107b3b..833f9384acde974c26cf8fa5994b595979175567 100644 |
--- a/src/inspector/v8-debugger.cc |
+++ b/src/inspector/v8-debugger.cc |
@@ -126,6 +126,10 @@ void V8Debugger::getCompiledScripts( |
} |
} |
+void V8Debugger::reportRequestedModules() { |
+ v8::debug::ReportRequestedModules(m_isolate); |
+} |
+ |
String16 V8Debugger::setBreakpoint(const ScriptBreakpoint& breakpoint, |
int* actualLineNumber, |
int* actualColumnNumber) { |
@@ -566,6 +570,17 @@ bool V8Debugger::IsFunctionBlackboxed(v8::Local<v8::debug::Script> script, |
end); |
} |
+void V8Debugger::ModuleRequested(v8::Local<v8::debug::Script> referer, |
+ v8::Local<v8::debug::Script> requested, |
+ v8::Local<v8::String> specifier) { |
+ V8DebuggerAgentImpl* refererAgent = agentForScript(m_inspector, referer); |
+ V8DebuggerAgentImpl* requestedAgent = agentForScript(m_inspector, requested); |
+ if (refererAgent != requestedAgent) return; |
+ refererAgent->moduleRequested(String16::fromInteger(referer->Id()), |
+ String16::fromInteger(requested->Id()), |
+ toProtocolString(specifier)); |
+} |
+ |
void V8Debugger::PromiseEventOccurred(v8::debug::PromiseDebugActionType type, |
int id, int parentId) { |
if (!m_maxAsyncCallStackDepth) return; |