mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
LibJS: Add spec comments to %TypedArray%.prototype.values
This commit is contained in:
parent
b2164ad979
commit
1eb15cbaf4
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/SerenityOS/serenity/commit/1eb15cbaf4 Pull-request: https://github.com/SerenityOS/serenity/pull/16110 Reviewed-by: https://github.com/linusg ✅
|
@ -1623,7 +1623,12 @@ JS_DEFINE_NATIVE_FUNCTION(TypedArrayPrototype::values)
|
|||
{
|
||||
auto& realm = *vm.current_realm();
|
||||
|
||||
// 1. Let O be the this value.
|
||||
auto* typed_array = TRY(typed_array_from_this(vm));
|
||||
|
||||
// FIXME 2. Perform ? ValidateTypedArray(O).
|
||||
|
||||
// 3. Return CreateArrayIterator(O, value).
|
||||
return ArrayIterator::create(realm, typed_array, Object::PropertyKind::Value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue