mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. fix wrong usage of ObjectPropertyDescriptor::NotPresent
2. add ArrayBufferObject Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
65e5d5ab7a
commit
f112dfefd2
7 changed files with 129 additions and 29 deletions
|
|
@ -200,7 +200,7 @@ bool ArrayObject::setFastModeValue(ExecutionState& state, const ObjectPropertyNa
|
|||
if (len > idx && !m_fastModeData[idx].isEmpty()) {
|
||||
// Non-empty slot of fast-mode array always has {writable:true, enumerable:true, configurable:true}.
|
||||
// So, when new desciptor is not present, keep {w:true, e:true, c:true}
|
||||
if (UNLIKELY(!desc.isNotPresent() && !desc.isDataWritableEnumerableConfigurable())) {
|
||||
if (UNLIKELY(!(desc.isValuePresentAlone() || desc.isDataWritableEnumerableConfigurable()))) {
|
||||
convertIntoNonFastMode(state);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue