-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b142
-
generic
-
generic
Our implementation of TypedArrays implements the original specification [1] which has been superseded by the ECMAScript 6 specification. ES6 does specify that the TypedArray prototype has a @@iterator function in order to work with the ES6 iterator protocol and for-of loops [2].
[1] https://www.khronos.org/registry/typedarray/specs/latest/
[2] http://www.ecma-international.org/ecma-262/6.0/#sec-%typedarray%.prototype-@@iterator
Even though we do not fully support ES6 version of TypedArrays, we should implement the @@iterator function in order to make TypedArrays work with Iterators and for-of.
[1] https://www.khronos.org/registry/typedarray/specs/latest/
[2] http://www.ecma-international.org/ecma-262/6.0/#sec-%typedarray%.prototype-@@iterator
Even though we do not fully support ES6 version of TypedArrays, we should implement the @@iterator function in order to make TypedArrays work with Iterators and for-of.