| Index: Source/bindings/v8/V8AbstractEventListener.cpp
|
| diff --git a/Source/bindings/v8/V8AbstractEventListener.cpp b/Source/bindings/v8/V8AbstractEventListener.cpp
|
| index 463fd8c696f9e96f6f0c3c65ec2d02d9c5df2467..cc44d28a3a7cb7b773c186081ade55ba98e23eae 100644
|
| --- a/Source/bindings/v8/V8AbstractEventListener.cpp
|
| +++ b/Source/bindings/v8/V8AbstractEventListener.cpp
|
| @@ -42,7 +42,7 @@
|
| #include "core/dom/EventNames.h"
|
| #include "core/inspector/InspectorCounters.h"
|
| #include "core/page/Frame.h"
|
| -#include "core/workers/WorkerContext.h"
|
| +#include "core/workers/WorkerGlobalScope.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -135,8 +135,8 @@ void V8AbstractEventListener::invokeEventHandler(ScriptExecutionContext* context
|
| event->target()->uncaughtExceptionInEventHandler();
|
|
|
| if (!tryCatch.CanContinue()) { // Result of TerminateExecution().
|
| - if (context->isWorkerContext())
|
| - static_cast<WorkerContext*>(context)->script()->forbidExecution();
|
| + if (context->isWorkerGlobalScope())
|
| + static_cast<WorkerGlobalScope*>(context)->script()->forbidExecution();
|
| return;
|
| }
|
| tryCatch.Reset();
|
|
|