mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
LibJS: Add TypedArray.prototype.@@iterator
This commit is contained in:
parent
4fe47ed86e
commit
6d5531112f
2 changed files with 92 additions and 0 deletions
|
@ -61,6 +61,9 @@ void TypedArrayPrototype::initialize(GlobalObject& object)
|
|||
|
||||
// 23.2.3.30 %TypedArray%.prototype.toString ( ), https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
|
||||
define_direct_property(vm.names.toString, global_object().array_prototype()->get_without_side_effects(vm.names.toString), attr);
|
||||
|
||||
// 23.2.3.32 %TypedArray%.prototype [ @@iterator ] ( ), https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator
|
||||
define_direct_property(*vm.well_known_symbol_iterator(), get_without_side_effects(vm.names.values), attr);
|
||||
}
|
||||
|
||||
TypedArrayPrototype::~TypedArrayPrototype()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue