summaryrefslogtreecommitdiff
path: root/tests/namespace_test/namespace-a/table-in-first-n-s.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/namespace_test/namespace-a/table-in-first-n-s.ts')
-rw-r--r--tests/namespace_test/namespace-a/table-in-first-n-s.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/namespace_test/namespace-a/table-in-first-n-s.ts b/tests/namespace_test/namespace-a/table-in-first-n-s.ts
index 72563a75..774a2f16 100644
--- a/tests/namespace_test/namespace-a/table-in-first-n-s.ts
+++ b/tests/namespace_test/namespace-a/table-in-first-n-s.ts
@@ -137,14 +137,13 @@ constructor(
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
const fooTable = (this.fooTable !== null ? this.fooTable!.pack(builder) : 0);
const fooUnion = builder.createObjectOffset(this.fooUnion);
- const fooStruct = (this.fooStruct !== null ? this.fooStruct!.pack(builder) : 0);
TableInFirstNS.startTableInFirstNS(builder);
TableInFirstNS.addFooTable(builder, fooTable);
TableInFirstNS.addFooEnum(builder, this.fooEnum);
TableInFirstNS.addFooUnionType(builder, this.fooUnionType);
TableInFirstNS.addFooUnion(builder, fooUnion);
- TableInFirstNS.addFooStruct(builder, fooStruct);
+ TableInFirstNS.addFooStruct(builder, (this.fooStruct !== null ? this.fooStruct!.pack(builder) : 0));
return TableInFirstNS.endTableInFirstNS(builder);
}