You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow native aggregate fields named buffer and byteOffset #1032
Allow FFI structure and union descriptors to preserve native field names buffer and byteOffset without colliding with aggregate-value metadata.
Why
These are ordinary C field names. Raylib 6.0's AudioStream.buffer must currently be renamed to nativeBuffer in generated JavaScript, with a separate alias table to recover the native name. See the merged binding documentation.
The fresh-main FFI suite passes in interpreted and bytecode modes (92 tests, 337 assertions), confirming the collision is intentional current behavior.
Expected behavior
Generated FFI aggregates should expose the exact native fields buffer and byteOffset while retaining an unambiguous way to access backing-buffer metadata. The solution should preserve nested-view and detached-buffer safety.
Scope notes
Do not rename native fields in generated bindings as the permanent API.
This is an FFI aggregate object-model collision, not a JavaScript reserved-keyword issue.
Activity