Index: Source/core/workers/WorkerThread.cpp |
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp |
index 4afc1f86c0dd84d85880c9f0ca1d31ee3f73c104..f8fa2454609bcb8398f6b7bd4b91866cf09861a9 100644 |
--- a/Source/core/workers/WorkerThread.cpp |
+++ b/Source/core/workers/WorkerThread.cpp |
@@ -320,9 +320,12 @@ void WorkerThread::initialize() |
if (!script->isExecutionForbidden()) |
script->initializeContextIfNeeded(); |
InspectorInstrumentation::willEvaluateWorkerScript(workerGlobalScope(), startMode); |
- script->evaluate(ScriptSourceCode(sourceCode, scriptURL)); |
+ bool result = script->evaluate(ScriptSourceCode(sourceCode, scriptURL)); |
m_workerGlobalScope->didEvaluateWorkerScript(); |
+ // Notify proxy that a worker script has been evaluated. |
+ m_workerReportingProxy.workerScriptEvaluated(result); |
+ |
postInitialize(); |
postDelayedTask(createSameThreadTask(&WorkerThread::idleHandler, this), kShortIdleHandlerDelayMs); |