-bool JSNotAnObject::getPrimitiveNumber(ExecState* exec, double&, JSValue&)
-{
- ASSERT_UNUSED(exec, exec->hadException());
- return false;
-}
-
-bool JSNotAnObject::toBoolean(ExecState* exec) const
-{
- ASSERT_UNUSED(exec, exec->hadException());
- return false;
-}
-
-double JSNotAnObject::toNumber(ExecState* exec) const
-{
- ASSERT_UNUSED(exec, exec->hadException());
- return NaN;
-}
-
-UString JSNotAnObject::toString(ExecState* exec) const
-{
- ASSERT_UNUSED(exec, exec->hadException());
- return "";
-}
-
-JSObject* JSNotAnObject::toObject(ExecState* exec, JSGlobalObject*) const
-{
- ASSERT_UNUSED(exec, exec->hadException());
- return const_cast<JSNotAnObject*>(this);
-}
-