Index: Source/bindings/v8/V8LazyEventListener.cpp |
diff --git a/Source/bindings/v8/V8LazyEventListener.cpp b/Source/bindings/v8/V8LazyEventListener.cpp |
index 9553b1c6aea99d8465a33363de2e5ed3624309c3..50a6e654462751f38b06bdaff52a54f1615c17f2 100644 |
--- a/Source/bindings/v8/V8LazyEventListener.cpp |
+++ b/Source/bindings/v8/V8LazyEventListener.cpp |
@@ -105,7 +105,7 @@ v8::Local<v8::Value> V8LazyEventListener::callListenerFunction(ScriptExecutionCo |
static void V8LazyEventListenerToString(const v8::FunctionCallbackInfo<v8::Value>& args) |
{ |
- v8SetReturnValue(args, args.Holder()->GetHiddenValue(V8HiddenPropertyName::toStringString())); |
+ v8SetReturnValue(args, args.Holder()->GetHiddenValue(V8HiddenPropertyName::toStringString(args.GetIsolate()))); |
} |
void V8LazyEventListener::prepareListenerObject(ScriptExecutionContext* context) |
@@ -211,7 +211,7 @@ void V8LazyEventListener::prepareListenerObject(ScriptExecutionContext* context) |
toStringFunction = toStringTemplate->GetFunction(); |
if (!toStringFunction.IsEmpty()) { |
String toStringString = "function " + m_functionName + "(" + m_eventParameterName + ") {\n " + m_code + "\n}"; |
- wrappedFunction->SetHiddenValue(V8HiddenPropertyName::toStringString(), v8String(toStringString, isolate)); |
+ wrappedFunction->SetHiddenValue(V8HiddenPropertyName::toStringString(isolate), v8String(toStringString, isolate)); |
wrappedFunction->Set(v8::String::NewSymbol("toString"), toStringFunction); |
} |