#include "config.h"
#include "GetterSetter.h"
#include "JSObject.h"
#include <wtf/Assertions.h>
namespace JSC {
void GetterSetter::mark()
{
JSCell::mark();
if (m_getter && !m_getter->marked())
m_getter->mark();
if (m_setter && !m_setter->marked())
m_setter->mark();
}
JSValue GetterSetter::toPrimitive(ExecState*, PreferredPrimitiveType) const
{
ASSERT_NOT_REACHED();
return jsNull();
}
bool GetterSetter::getPrimitiveNumber(ExecState*, double& number, JSValue& value)
{
ASSERT_NOT_REACHED();
number = 0;
value = JSValue();
return true;
}
bool GetterSetter::toBoolean(ExecState*) const
{
ASSERT_NOT_REACHED();
return false;
}
double GetterSetter::toNumber(ExecState*) const
{
ASSERT_NOT_REACHED();
return 0.0;
}
UString GetterSetter::toString(ExecState*) const
{
ASSERT_NOT_REACHED();
return UString::null();
}
JSObject* GetterSetter::toObject(ExecState* exec) const
{
ASSERT_NOT_REACHED();
return jsNull().toObject(exec);
}
bool GetterSetter::isGetterSetter() const
{
return true;
}
}