From dfba57e39aaf9559449f21d1958f73c5afacb160 Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Fri, 16 Jun 2023 18:32:36 +0200 Subject: [PATCH] Make `IntegerIndexed::byte_offset` public (#3017) This allows querying the full range of the `TypedArray` in the underlying `ArrayBuffer`. --- boa_engine/src/builtins/typed_array/integer_indexed_object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa_engine/src/builtins/typed_array/integer_indexed_object.rs b/boa_engine/src/builtins/typed_array/integer_indexed_object.rs index 05538d6075..b7049bddc1 100644 --- a/boa_engine/src/builtins/typed_array/integer_indexed_object.rs +++ b/boa_engine/src/builtins/typed_array/integer_indexed_object.rs @@ -66,7 +66,7 @@ impl IntegerIndexed { } /// Get the integer indexed object's byte offset. - pub(crate) const fn byte_offset(&self) -> u64 { + pub const fn byte_offset(&self) -> u64 { self.byte_offset }