| Index: Source/bindings/v8/V8ErrorHandler.cpp
|
| diff --git a/Source/bindings/v8/V8ErrorHandler.cpp b/Source/bindings/v8/V8ErrorHandler.cpp
|
| index 0e29b9cfd3aea954c10937bdebc6a07f344eb27d..b70ef20032c2cd323e035236e447cebfbbdab13a 100644
|
| --- a/Source/bindings/v8/V8ErrorHandler.cpp
|
| +++ b/Source/bindings/v8/V8ErrorHandler.cpp
|
| @@ -73,7 +73,7 @@ v8::Local<v8::Value> V8ErrorHandler::callListenerFunction(ExecutionContext* cont
|
| v8::Handle<v8::Value> parameters[5] = { v8String(isolate, errorEvent->message()), v8String(isolate, errorEvent->filename()), v8::Integer::New(isolate, errorEvent->lineno()), v8::Integer::New(isolate, errorEvent->colno()), error };
|
| v8::TryCatch tryCatch;
|
| tryCatch.SetVerbose(true);
|
| - if (worldType(isolate) == WorkerWorld)
|
| + if (DOMWrapperWorld::current(isolate)->isWorkerWorld())
|
| returnValue = V8ScriptRunner::callFunction(callFunction, context, thisValue, WTF_ARRAY_LENGTH(parameters), parameters, isolate);
|
| else
|
| returnValue = ScriptController::callFunction(context, callFunction, thisValue, WTF_ARRAY_LENGTH(parameters), parameters, isolate);
|
|
|