From a4e969f4965059196ca948db781e52f7cfebf19e Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 24 May 2016 08:28:08 +0000 Subject: webkitgtk-2.12.3 --- Source/JavaScriptCore/runtime/PropertySlot.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/JavaScriptCore/runtime/PropertySlot.cpp') diff --git a/Source/JavaScriptCore/runtime/PropertySlot.cpp b/Source/JavaScriptCore/runtime/PropertySlot.cpp index c949f4bd2..ad555c7cf 100644 --- a/Source/JavaScriptCore/runtime/PropertySlot.cpp +++ b/Source/JavaScriptCore/runtime/PropertySlot.cpp @@ -23,6 +23,7 @@ #include "GetterSetter.h" #include "JSCJSValueInlines.h" +#include "JSObject.h" namespace JSC { @@ -32,4 +33,10 @@ JSValue PropertySlot::functionGetter(ExecState* exec) const return callGetter(exec, m_thisValue, m_data.getter.getterSetter); } +JSValue PropertySlot::customGetter(ExecState* exec, PropertyName propertyName) const +{ + JSValue thisValue = m_attributes & CustomAccessor ? m_thisValue : JSValue(slotBase()); + return JSValue::decode(m_data.custom.getValue(exec, JSValue::encode(thisValue), propertyName)); +} + } // namespace JSC -- cgit v1.2.1