Skip to content

buffer: do not crash in Debug build

Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • documentation is changed or added
  • the commit message follows commit guidelines
Affected core subsystem(s)
Description of change

In SetupBufferJS creating Uint32Array requires 4 bytes for each entry, while the underlying ArrayBuffer was only 1 byte long. Use Uint8Array instead.

R = @bnoordhuis (cleaning up after your commit 😉 )

Merge request reports

Loading