| Index: Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp
|
| diff --git a/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp b/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp
|
| index 5258f0211de096b782c83e54282961df8e6292f0..3ddc50a3d0d700bc51f80dc8d930cb5f904021af 100644
|
| --- a/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp
|
| +++ b/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp
|
| @@ -114,10 +114,11 @@ v8::Local<v8::Object> V8WorkerGlobalScopeEventListener::getReceiverObject(Script
|
| return listener;
|
|
|
| EventTarget* target = event->currentTarget();
|
| - v8::Handle<v8::Value> value = toV8(target, v8::Handle<v8::Object>(), toV8Context(context, world())->GetIsolate());
|
| + v8::Isolate* isolate = isolateForScriptExecutionContext(context);
|
| + v8::Handle<v8::Value> value = toV8(target, v8::Handle<v8::Object>(), isolate);
|
| if (value.IsEmpty())
|
| return v8::Local<v8::Object>();
|
| - return v8::Local<v8::Object>::New(v8::Handle<v8::Object>::Cast(value));
|
| + return v8::Local<v8::Object>::New(isolate, v8::Handle<v8::Object>::Cast(value));
|
| }
|
|
|
| } // namespace WebCore
|
|
|