mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
In TypedArrayObject::integerIndexedElementSet check detached buffer correctly
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
c231374c38
commit
142cf01ad4
2 changed files with 5 additions and 3 deletions
|
|
@ -210,7 +210,11 @@ bool TypedArrayObject::integerIndexedElementSet(ExecutionState& state, double in
|
|||
numValue = Value(Value::DoubleToIntConvertibleTestNeeds, value.toNumber(state));
|
||||
}
|
||||
|
||||
if (buffer()->isDetachedBuffer() || !Value(Value::DoubleToIntConvertibleTestNeeds, index).isInteger(state) || index == Value::MinusZeroIndex || index < 0 || index >= arrayLength()) {
|
||||
if (buffer()->isDetachedBuffer()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!Value(Value::DoubleToIntConvertibleTestNeeds, index).isInteger(state) || index == Value::MinusZeroIndex || index < 0 || index >= arrayLength()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,8 +164,6 @@
|
|||
<test id="built-ins/Temporal/ZonedDateTime/prototype/until/argument-string-limits"><reason>TODO</reason></test>
|
||||
<test id="built-ins/Temporal/ZonedDateTime/prototype/until/roundingincrement-addition-out-of-range"><reason>TODO</reason></test>
|
||||
<test id="built-ins/ThrowTypeError/unique-per-realm-function-proto"><reason>TODO</reason></test>
|
||||
<test id="built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/tonumber-value-detached-buffer"><reason>TODO</reason></test>
|
||||
<test id="built-ins/TypedArrayConstructors/internals/DefineOwnProperty/tonumber-value-detached-buffer"><reason>TODO</reason></test>
|
||||
<test id="built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-canonical-invalid-index-prototype-chain-set"><reason>TODO</reason></test>
|
||||
<test id="built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-canonical-invalid-index-reflect-set"><reason>TODO</reason></test>
|
||||
<test id="built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-valid-index-prototype-chain-set"><reason>TODO</reason></test>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue