Commit faaccfb
src: simplify and fix FFI ArrayBuffer accesses
`ArrayBufferViewContents` supports `ArrayBuffer`s, so we do not
need to provide special treatment for those.
Also, small typed arrays may not have backing stores until their
corresponding `ArrayBuffer`s are accessed, so do that in order
to avoid accidentally accessing arbitrary stack memory.
Signed-off-by: Anna Henningsen <anna@addaleax.net>
PR-URL: #62857
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>1 parent fdcd775 commit faaccfb
1 file changed
Lines changed: 32 additions & 36 deletions