Rename PropertyName into ObjectStructurePropertyName

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2019-11-29 14:24:52 +09:00 committed by Hyukwoo Park
commit 0a9ec4f9eb
19 changed files with 113 additions and 134 deletions

View file

@ -108,7 +108,7 @@ bool ArrayObject::defineOwnProperty(ExecutionState& state, const ObjectPropertyN
return setArrayLength(state, idx + 1);
}
return true;
} else if (P.toPropertyName(state).equals(state.context()->staticStrings().length.string())) {
} else if (P.toObjectStructurePropertyName(state).equals(state.context()->staticStrings().length.string())) {
// See 3.a ~ 3.n on http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.5.1
if (desc.isValuePresent()) {
ObjectPropertyDescriptor newLenDesc(desc);