mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
1. setting array.length to writable false while writing length is should correctly evaluated
2. revise Array.prototype.{splice, slice, shift, unshift}
3. change Object::nextIndexForward, Object::nextIndexBackward to return existence of index
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
82f3d75103
commit
811cc9553f
11 changed files with 221 additions and 79 deletions
|
|
@ -260,7 +260,9 @@ bool ArrayObject::setArrayLength(ExecutionState& state, const uint64_t& newLengt
|
|||
ObjectPropertyName key(state, Value(oldLen));
|
||||
|
||||
if (!getOwnProperty(state, key).hasValue()) {
|
||||
oldLen = Object::nextIndexBackward(state, this, oldLen, -1, false);
|
||||
double result;
|
||||
Object::nextIndexBackward(state, this, oldLen, -1, false, result);
|
||||
oldLen = result;
|
||||
|
||||
if (oldLen < newLen) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue