| Index: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
|
| index 967857f7c7239d56a85110fd0ab9599af7d179eb..19c775d92473f141fddd55525e3a47332fd240a2 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
|
| @@ -188,7 +188,7 @@ void V8LazyEventListener::prepareListenerObject(ExecutionContext* executionConte
|
| return;
|
| String toStringString = "function " + m_functionName + "(" + m_eventParameterName + ") {\n " + m_code + "\n}";
|
| V8HiddenValue::setHiddenValue(scriptState, wrappedFunction, V8HiddenValue::toStringString(isolate()), v8String(isolate(), toStringString));
|
| - if (!v8CallBoolean(wrappedFunction->Set(scriptState->context(), v8AtomicString(isolate(), "toString"), toStringFunction)))
|
| + if (!v8CallBoolean(wrappedFunction->CreateDataProperty(scriptState->context(), v8AtomicString(isolate(), "toString"), toStringFunction)))
|
| return;
|
| wrappedFunction->SetName(v8String(isolate(), m_functionName));
|
|
|
|
|