feat: things?

This commit is contained in:
TrèsAbhi committed 2024-02-19 18:45:43 -06:00
1 parent b883f5b9e2
commit ca030688cb
8 files changed
+83 -57

No files matched your search

+2 -2
View File
@@ -212,7 +212,7 @@ export class CdonWriteStream extends WriteStream {
object: CdonValue,
stringTable: Map<string, number>,
) {
if (object === null || object === undefined) {
if (object === null) {
this.uint8(ValueType.Null);
} else if (typeof object === 'boolean') {
this.uint8(ValueType.Boolean);
@@ -289,7 +289,7 @@ export class CdonWriteStream extends WriteStream {
object.forEach((value) =>
this.value(fastStringFormat, value, stringTable),
);
} else {
} else if (object !== undefined) {
const entries = Object.entries(object);
this.uint8(ValueType.Object);