mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
implement Array.prototype.indexOf, Array.prototype.lastIndexOf
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
61ab2372d2
commit
2057250e48
10 changed files with 196 additions and 28 deletions
|
|
@ -165,7 +165,7 @@ bool ArrayObject::setArrayLength(ExecutionState& state, const uint64_t& newLengt
|
|||
bool deleteSucceeded = deleteOwnProperty(state, ObjectPropertyName(state, Value(oldLen)));
|
||||
if (!deleteSucceeded) {
|
||||
m_values[ESCARGOT_OBJECT_BUILTIN_PROPERTY_NUMBER] = Value(oldLen + 1);
|
||||
Object::throwCannotDeleteError(state, PropertyName(state, String::fromDouble(oldLen)));
|
||||
// Object::throwCannotDeleteError(state, PropertyName(state, String::fromDouble(oldLen)));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue