diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/PropertySlot.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/PropertySlot.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |