mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-02-20 11:42:36 +01:00
fix serializing undefined
This commit is contained in:
parent
d5648dc7e8
commit
4a1d6e406a
@ -21,7 +21,7 @@ export class EvaWireFormat implements ICodec
|
||||
|
||||
if(type === 'object')
|
||||
{
|
||||
if(value === null) type = 'null';
|
||||
if(value === null || value === undefined) type = 'null';
|
||||
else if(value instanceof Byte) type = 'byte';
|
||||
else if(value instanceof Short) type = 'short';
|
||||
else if(value instanceof ArrayBuffer) type = 'arraybuffer';
|
||||
|
Loading…
x
Reference in New Issue
Block a user