mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Rename PropertyName into ObjectStructurePropertyName
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
c40f0c792c
commit
0a9ec4f9eb
19 changed files with 113 additions and 134 deletions
|
|
@ -197,7 +197,7 @@ void RegExpObject::initWithOption(ExecutionState& state, String* source, Option
|
|||
void RegExpObject::setLastIndex(ExecutionState& state, const Value& v)
|
||||
{
|
||||
if (UNLIKELY(rareData() && rareData()->m_hasNonWritableLastIndexRegexpObject && (m_option & (Option::Sticky | Option::Global)))) {
|
||||
Object::throwCannotWriteError(state, PropertyName(state.context()->staticStrings().lastIndex));
|
||||
Object::throwCannotWriteError(state, ObjectStructurePropertyName(state.context()->staticStrings().lastIndex));
|
||||
}
|
||||
m_lastIndex = v;
|
||||
}
|
||||
|
|
@ -205,7 +205,7 @@ void RegExpObject::setLastIndex(ExecutionState& state, const Value& v)
|
|||
bool RegExpObject::defineOwnProperty(ExecutionState& state, const ObjectPropertyName& P, const ObjectPropertyDescriptor& desc)
|
||||
{
|
||||
bool returnValue = Object::defineOwnProperty(state, P, desc);
|
||||
if (!P.isUIntType() && returnValue && P.propertyName() == PropertyName(state.context()->staticStrings().lastIndex)) {
|
||||
if (!P.isUIntType() && returnValue && P.objectStructurePropertyName() == ObjectStructurePropertyName(state.context()->staticStrings().lastIndex)) {
|
||||
if (!structure()->readProperty((size_t)ESCARGOT_OBJECT_BUILTIN_PROPERTY_NUMBER).m_descriptor.isWritable()) {
|
||||
ensureObjectRareData()->m_hasNonWritableLastIndexRegexpObject = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue