mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix some bugs related to Array and TypedArray (#450)
* Close iterator when throwing an error * Clamp the Uint8ClampedArray value properly. * pass more spidermonkey tests Signed-off-by: Boram Bae <boram21.bae@samsung.com>
This commit is contained in:
parent
81b8992775
commit
069921b3b9
7 changed files with 134 additions and 85 deletions
|
|
@ -319,7 +319,7 @@ bool ArrayObject::setArrayLength(ExecutionState& state, const uint64_t newLength
|
|||
|
||||
if (!getOwnProperty(state, key).hasValue()) {
|
||||
int64_t result;
|
||||
Object::nextIndexBackward(state, this, oldLen, -1, false, result);
|
||||
Object::nextIndexBackward(state, this, oldLen, -1, result);
|
||||
oldLen = result;
|
||||
|
||||
if (oldLen < newLen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue