@@ -807,7 +807,7 @@ export function serializeInto(
807
807
} else if ( typeof value === 'number' ) {
808
808
index = serializeNumber ( buffer , key , value , index , true ) ;
809
809
} else if ( typeof value === 'bigint' ) {
810
- throw new TypeError ( 'Do not know how to serialize a BigInt, please use Decimal128' ) ;
810
+ throw new TypeError ( 'Unsupported type BigInt, please use Decimal128' ) ;
811
811
} else if ( typeof value === 'boolean' ) {
812
812
index = serializeBoolean ( buffer , key , value , index , true ) ;
813
813
} else if ( value instanceof Date || isDate ( value ) ) {
@@ -915,7 +915,7 @@ export function serializeInto(
915
915
} else if ( type === 'number' ) {
916
916
index = serializeNumber ( buffer , key , value , index ) ;
917
917
} else if ( type === 'bigint' || isBigInt64Array ( value ) || isBigUInt64Array ( value ) ) {
918
- throw new TypeError ( 'Do not know how to serialize a BigInt, please use Decimal128' ) ;
918
+ throw new TypeError ( 'Unsupported type BigInt, please use Decimal128' ) ;
919
919
} else if ( type === 'boolean' ) {
920
920
index = serializeBoolean ( buffer , key , value , index ) ;
921
921
} else if ( value instanceof Date || isDate ( value ) ) {
@@ -1019,7 +1019,7 @@ export function serializeInto(
1019
1019
} else if ( type === 'number' ) {
1020
1020
index = serializeNumber ( buffer , key , value , index ) ;
1021
1021
} else if ( type === 'bigint' ) {
1022
- throw new TypeError ( 'Do not know how to serialize a BigInt, please use Decimal128' ) ;
1022
+ throw new TypeError ( 'Unsupported type BigInt, please use Decimal128' ) ;
1023
1023
} else if ( type === 'boolean' ) {
1024
1024
index = serializeBoolean ( buffer , key , value , index ) ;
1025
1025
} else if ( value instanceof Date || isDate ( value ) ) {
0 commit comments