Chromium Code Reviews| Index: Source/core/workers/WorkerThread.cpp |
| diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp |
| index 988256e367b9a256b1245ff2fdac409fb9aa786d..a4ca7f659701a582a936b07b4006f989561e98bc 100644 |
| --- a/Source/core/workers/WorkerThread.cpp |
| +++ b/Source/core/workers/WorkerThread.cpp |
| @@ -286,7 +286,6 @@ void WorkerThread::initialize() |
| void WorkerThread::cleanup() |
| { |
| - |
| // This should be called before we start the shutdown procedure. |
| workerReportingProxy().willDestroyWorkerGlobalScope(); |
| @@ -337,6 +336,8 @@ public: |
| virtual void performTask(ExecutionContext *context) |
| { |
| WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context); |
| + |
| + V8PerIsolateData::willBeDestroyed(workerGlobalScope->script()->isolate()); |
|
haraken
2014/09/11 01:18:54
Can we call this in WorkerThread::cleanup()? We wa
|
| workerGlobalScope->clearInspector(); |
| // It's not safe to call clearScript until all the cleanup tasks posted by functions initiated by WorkerThreadShutdownStartTask have completed. |
| workerGlobalScope->clearScript(); |