summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-12-21 14:26:53 +0000
committerLinus Groh <mail@linusgroh.de>2021-12-21 15:40:41 +0100
commit6d5531112f7a0d0a0c9b88e343a455d90098e7a8 (patch)
tree8d2c1883305a15ffe65fd0ff8a06e9688a3dd632 /Userland/Libraries/LibJS/Runtime
parent4fe47ed86e31bd7978cf33f8992b2e9ba4f4b4a1 (diff)
downloadserenity-6d5531112f7a0d0a0c9b88e343a455d90098e7a8.zip
LibJS: Add TypedArray.prototype.@@iterator
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
-rw-r--r--Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp b/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp
index 0a6ba327c4..336b9c5e80 100644
--- a/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp
+++ b/Userland/Libraries/LibJS/Runtime/TypedArrayPrototype.cpp
@@ -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()