Closed xxshady closed 3 months ago
For some reason HasBuffer doesn't work as it should and according to MDN docs buffer is readonly and should always present in TypedArray
HasBuffer
alt.Events.on('test', (...data) => { alt.log({ data }) }) alt.Events.emit('test', new Uint8Array([1, 2, 3]))
before: { data: [ undefined ] }
{ data: [ undefined ] }
after:
{ data: [ ArrayBuffer { [Uint8Contents]: <01 02 03>, byteLength: 3 } ] }
For some reason
HasBuffer
doesn't work as it should and according to MDN docs buffer is readonly and should always present in TypedArraybefore:
{ data: [ undefined ] }
after: