Pass tidy check

This commit is contained in:
Eunji Jeong 2016-12-20 14:35:32 +09:00
commit 36c293c12f
10 changed files with 82 additions and 78 deletions

View file

@ -33,25 +33,25 @@ ObjectPropertyDescriptor::ObjectPropertyDescriptor(ExecutionState& state, Object
void ObjectPropertyDescriptor::setEnumerable(bool enumerable)
{
if (enumerable)
m_property = (PresentAttribute) (m_property | EnumerablePresent);
m_property = (PresentAttribute)(m_property | EnumerablePresent);
else
m_property = (PresentAttribute) (m_property | NonEnumerablePresent);
m_property = (PresentAttribute)(m_property | NonEnumerablePresent);
}
void ObjectPropertyDescriptor::setConfigurable(bool configurable)
{
if (configurable)
m_property = (PresentAttribute) (m_property | ConfigurablePresent);
m_property = (PresentAttribute)(m_property | ConfigurablePresent);
else
m_property = (PresentAttribute) (m_property | NonConfigurablePresent);
m_property = (PresentAttribute)(m_property | NonConfigurablePresent);
}
void ObjectPropertyDescriptor::setWritable(bool writable)
{
if (writable)
m_property = (PresentAttribute) (m_property | WritablePresent);
m_property = (PresentAttribute)(m_property | WritablePresent);
else
m_property = (PresentAttribute) (m_property | NonWritablePresent);
m_property = (PresentAttribute)(m_property | NonWritablePresent);
}
Object::Object(ExecutionState& state, size_t defaultSpace, bool initPlainArea)