| Index: Source/bindings/v8/V8LazyEventListener.cpp
|
| diff --git a/Source/bindings/v8/V8LazyEventListener.cpp b/Source/bindings/v8/V8LazyEventListener.cpp
|
| index 592a93282f52946584956b110044c8b2debd9aa5..ddb553f69fdc4a46de236d5e3fd8b65211a13bf3 100644
|
| --- a/Source/bindings/v8/V8LazyEventListener.cpp
|
| +++ b/Source/bindings/v8/V8LazyEventListener.cpp
|
| @@ -120,11 +120,11 @@ void V8LazyEventListener::prepareListenerObject(ScriptExecutionContext* context)
|
|
|
| ASSERT(context->isDocument());
|
|
|
| - v8::HandleScope handleScope;
|
| + v8::Isolate* isolate = getIsolateFromScriptExecutionContext(context);
|
| + v8::HandleScope handleScope(isolate);
|
|
|
| // Use the outer scope to hold context.
|
| v8::Local<v8::Context> v8Context = toV8Context(context, world());
|
| - v8::Isolate* isolate = v8Context->GetIsolate();
|
| // Bail out if we cannot get the context.
|
| if (v8Context.IsEmpty())
|
| return;
|
|
|