mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-17 09:53:07 +09:00
Issue #2026 - Part 1 - Implement BigInt64 and BigUint64Array. https://bugzilla.mozilla.org/show_bug.cgi?id=1456569
This commit is contained in:
parent
0fc38724d1
commit
b64643e410
36 changed files with 788 additions and 232 deletions
|
|
@ -376,6 +376,13 @@ js::GetElements(JSContext* cx, HandleObject aobj, uint32_t length, Value* vp)
|
|||
}
|
||||
}
|
||||
|
||||
if (aobj->is<TypedArrayObject>()) {
|
||||
Handle<TypedArrayObject*> typedArray = aobj.as<TypedArrayObject>();
|
||||
if (typedArray->length() == length) {
|
||||
return TypedArrayObject::getElements(cx, typedArray, vp);
|
||||
}
|
||||
}
|
||||
|
||||
if (js::GetElementsOp op = aobj->getOpsGetElements()) {
|
||||
ElementAdder adder(cx, vp, length, ElementAdder::GetElement);
|
||||
return op(cx, aobj, 0, length, &adder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue