From a583b5d52abd95ec435b8b2b413d0dd7e84af9e2 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Wed, 5 Feb 2025 21:00:28 +0200 Subject: [PATCH] Add Float16Array branch --- .../typed_array_objects/typed_array_intrinsic_object.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs index 9b23ec19..4fd433f7 100644 --- a/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs +++ b/nova_vm/src/ecmascript/builtins/indexed_collections/typed_array_objects/typed_array_intrinsic_object.rs @@ -748,6 +748,8 @@ impl TypedArrayPrototype { TypedArray::Int16Array(_) | TypedArray::Uint16Array(_) => { typed_array_length::(agent, &ta_record, gc.nogc()) } + #[cfg(feature = "proposal-float16array")] + TypedArray::Float16Array(_) => typed_array_length::(agent, &ta_record, gc.nogc()), TypedArray::Int32Array(_) | TypedArray::Uint32Array(_) | TypedArray::Float32Array(_) => {