Add [Symbol.iterator] for Float32Array

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IABHTW
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I35a012b817069c7075b074854300934d3321e323
This commit is contained in:
hzzhouzebin 2024-07-08 23:30:03 +08:00 committed by zhouzebin
parent 4cc8e53bed
commit 2e189e7cce

View File

@ -5225,6 +5225,16 @@ declare namespace collections {
* @since 12
*/
at(index: number): number | undefined;
/**
* Returns an iterator that iterates over numbers.
*
* @returns { IterableIterator<number> } Iterator object that yields numbers.
* @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
* @syscap SystemCapability.Utils.Lang
* @atomicservice
* @since 12
*/
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*
@ -5508,6 +5518,16 @@ declare namespace collections {
* @since 12
*/
flipBitsByRange(fromIndex: number, toIndex: number): void;
/**
* Returns an iterator that iterates over bit vector.
*
* @returns { IterableIterator<number> } A new iterable iterator object.
* @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
* @syscap SystemCapability.Utils.Lang
* @atomicservice
* @since 12
*/
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an iterable of values in the bit vector
*