Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
index 7ddec3b6d0ff4c955b67635683ba5e8f0adae9ba..202c586800bb8ac60c8c89c136838ce45c84d873 100644 |
--- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
+++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
@@ -256,7 +256,7 @@ static v8::Handle<v8::Array> getJSListenerFunctions(Document* document, const Ev |
v8::Local<v8::Object> listenerEntry = v8::Object::New(); |
listenerEntry->Set(v8::String::NewSymbol("listener"), function); |
listenerEntry->Set(v8::String::NewSymbol("useCapture"), v8::Boolean::New(listenerInfo.eventListenerVector[i].useCapture)); |
- result->Set(v8::Number::New(outputIndex++), listenerEntry); |
+ result->Set(v8::Number::New(v8Listener->isolate(), outputIndex++), listenerEntry); |
} |
return result; |
} |