| Index: Source/core/workers/WorkerContext.cpp
|
| diff --git a/Source/core/workers/WorkerContext.cpp b/Source/core/workers/WorkerContext.cpp
|
| index 81bcb913a2d9e023b13228a558d170f1808616da..0f16b83e17099c36d29c861420e28265fd570161 100644
|
| --- a/Source/core/workers/WorkerContext.cpp
|
| +++ b/Source/core/workers/WorkerContext.cpp
|
| @@ -99,7 +99,7 @@ WorkerContext::WorkerContext(const KURL& url, const String& userAgent, PassOwnPt
|
|
|
| WorkerContext::~WorkerContext()
|
| {
|
| - ASSERT(currentThread() == thread()->threadID());
|
| + ASSERT(thread()->isCurrentThread());
|
|
|
| // Make sure we have no observers.
|
| notifyObserversOfStop();
|
| @@ -302,7 +302,7 @@ void WorkerContext::addMessageToWorkerConsole(MessageSource source, MessageLevel
|
|
|
| bool WorkerContext::isContextThread() const
|
| {
|
| - return currentThread() == thread()->threadID();
|
| + return thread()->isCurrentThread();
|
| }
|
|
|
| bool WorkerContext::isJSExecutionForbidden() const
|
|
|