diff options
Diffstat (limited to 'Source/WebCore')
-rw-r--r-- | Source/WebCore/bindings/v8/V8AbstractEventListener.cpp | 2 | ||||
-rw-r--r-- | Source/WebCore/bindings/v8/V8DOMWrapper.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp b/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp index f1102c2..90dc097 100644 --- a/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp +++ b/Source/WebCore/bindings/v8/V8AbstractEventListener.cpp @@ -156,8 +156,10 @@ void V8AbstractEventListener::invokeEventHandler(ScriptExecutionContext* context event->target()->uncaughtExceptionInEventHandler(); if (!tryCatch.CanContinue()) { // Result of TerminateExecution(). +#if ENABLE(WORKERS) if (context->isWorkerContext()) static_cast<WorkerContext*>(context)->script()->forbidExecution(); +#endif return; } tryCatch.Reset(); diff --git a/Source/WebCore/bindings/v8/V8DOMWrapper.cpp b/Source/WebCore/bindings/v8/V8DOMWrapper.cpp index bef28a2..249ca7c 100644 --- a/Source/WebCore/bindings/v8/V8DOMWrapper.cpp +++ b/Source/WebCore/bindings/v8/V8DOMWrapper.cpp @@ -252,7 +252,9 @@ static bool globalObjectPrototypeIsDOMWindow(v8::Handle<v8::Object> objectProtot v8::Local<v8::Object> V8DOMWrapper::instantiateV8Object(V8Proxy* proxy, WrapperTypeInfo* type, void* impl) { +#if ENABLE(WORKERS) WorkerContext* workerContext = 0; +#endif if (V8IsolatedContext::getEntered()) { // This effectively disables the wrapper cache for isolated worlds. proxy = 0; |