Index: Source/bindings/v8/WorkerScriptController.cpp |
diff --git a/Source/bindings/v8/WorkerScriptController.cpp b/Source/bindings/v8/WorkerScriptController.cpp |
index 6127764871bf72ad64238da0085237b601cbcfd7..d4b37c97c8649b4470c203bf01f54b9a246987c7 100644 |
--- a/Source/bindings/v8/WorkerScriptController.cpp |
+++ b/Source/bindings/v8/WorkerScriptController.cpp |
@@ -96,12 +96,15 @@ private: |
v8::Isolate* m_isolate; |
}; |
+void WorkerScriptController::dispose() |
+{ |
+ m_world->dispose(); |
+} |
+ |
WorkerScriptController::~WorkerScriptController() |
{ |
ThreadState::current()->removeInterruptor(m_interruptor.get()); |
- m_world->dispose(); |
- |
// The corresponding call to didStartWorkerRunLoop is in |
// WorkerThread::workerThread(). |
// See http://webkit.org/b/83104#c14 for why this is here. |