mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 17:00:02 +00:00
[TS] fix incorrect reverse when writting array of structs (#7271)
This commit is contained in:
@@ -617,7 +617,7 @@ export class Builder {
|
||||
|
||||
createStructOffsetList(list: string[] | any[], startFunc: (builder: Builder, length: number) => void): Offset {
|
||||
startFunc(this, list.length);
|
||||
this.createObjectOffsetList(list);
|
||||
this.createObjectOffsetList(list.slice().reverse());
|
||||
return this.endVector();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user