FixedArray Creation

38 views
Skip to first unread message

Ronald Fenner

unread,
Jan 13, 2024, 9:38:32 AM1/13/24
to v8-dev
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?

Ben Noordhuis

unread,
Jan 15, 2024, 4:01:55 AM1/15/24
to v8-...@googlegroups.com
I don't think you can. Casting isn't safe either because not all
Arrays are FixedArrays, e.g., sparse or dictionary mode arrays.
Reply all
Reply to author
Forward
0 new messages