Index: Source/core/inspector/WorkerDebuggerAgent.cpp |
diff --git a/Source/core/inspector/WorkerDebuggerAgent.cpp b/Source/core/inspector/WorkerDebuggerAgent.cpp |
index 52d2b4d4f5c01e4badba956ba1125f152e94843d..46a5ae07f49e3377d1719408f6ed82e7e7af7dea 100644 |
--- a/Source/core/inspector/WorkerDebuggerAgent.cpp |
+++ b/Source/core/inspector/WorkerDebuggerAgent.cpp |
@@ -117,11 +117,11 @@ WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() |
return *m_scriptDebugServer; |
} |
-InjectedScript WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId) |
+InjectedScript& WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId) |
{ |
if (executionContextId) { |
*error = "Execution context id is not supported for workers as there is only one execution context."; |
- return InjectedScript(); |
+ return injectedScriptManager()->placeholderInjectedScript(); |
} |
return injectedScriptManager()->injectedScriptFor(m_inspectedWorkerGlobalScope->script()->scriptState()); |
} |