Chromium Code Reviews| Index: Source/core/workers/WorkerRunLoop.cpp |
| diff --git a/Source/core/workers/WorkerRunLoop.cpp b/Source/core/workers/WorkerRunLoop.cpp |
| index 09c4d05c8af252bb544b2b04e1345f2ce195311b..8ecb4f280630e043411c49e44e39cc9fe82262e9 100644 |
| --- a/Source/core/workers/WorkerRunLoop.cpp |
| +++ b/Source/core/workers/WorkerRunLoop.cpp |
| @@ -31,6 +31,7 @@ |
| #include "config.h" |
| #include "core/workers/WorkerRunLoop.h" |
| +#include "core/dom/Microtask.h" |
| #include "core/inspector/InspectorInstrumentation.h" |
| #include "core/workers/WorkerGlobalScope.h" |
| #include "core/workers/WorkerThread.h" |
| @@ -57,6 +58,8 @@ public: |
| WorkerGlobalScope* workerGlobalScope = m_runLoop.context(); |
| if ((!workerGlobalScope->isClosing() && !m_runLoop.terminated()) || m_task->isCleanupTask()) |
| m_task->performTask(workerGlobalScope); |
| + if (!workerGlobalScope->isClosing() && !m_runLoop.terminated()) |
| + Microtask::performCheckpoint(); |
|
jochen (gone - plz use gerrit)
2014/04/07 13:06:36
for debugger tasks, this will be executed twice: w
yhirano
2014/04/08 07:35:13
I think it won't, but I may misunderstand the situ
|
| } |
| private: |