mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: things?
This commit is contained in:
1 parent
b883f5b9e2
commit
ca030688cb
8 files changed
+83
-57
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user