On Sat, Jan 13, 2024 at 3:38 PM 'Ronald Fenner' via v8-dev <v8-dev@googlegroups.com> wrote: > > Is there a way to create a FixedArray for the embedder standpoint. Looking > through the coode it looks like it's creation is an internal method and can't > create one to use. I was wanting to unit test m y import assertion handling > code by passing it the arry a of values. > > Is it possible to cast an Array to a FixedArray?
I don't think you can. Casting isn't safe either because not all Arrays are FixedArrays, e.g., sparse or dictionary mode arrays. -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc8JXUTriG8gLu0xkmfE0AQF-PyfBtKxyH5kbNaLh5_%3DiQ%40mail.gmail.com.