Implement part of Array.prototype.splice.

Fix setFastModeValue, deleteOwnProperty in Array Object.
This commit is contained in:
Junyoung Cho 2016-12-16 16:41:03 +09:00
commit b38fc335b8
4 changed files with 85 additions and 3 deletions

View file

@ -53,7 +53,7 @@ void ArrayObject::deleteOwnProperty(ExecutionState& state, const ObjectPropertyN
uint32_t len = m_fastModeData.size();
ASSERT(len == getLength(state));
if (idx < len) {
m_fastModeData[len] = Value(Value::EmptyValue);
m_fastModeData[idx] = Value(Value::EmptyValue);
return;
}
}