Function
validateSchemaMismatchSelection
(options, schemaMismatch)
Source from the content-addressed store, hash-verified
| 722 | } |
| 723 | |
| 724 | function validateSchemaMismatchSelection(options, schemaMismatch) { |
| 725 | if (!schemaMismatch) { |
| 726 | return; |
| 727 | } |
| 728 | if (options.serializer !== "fory") { |
| 729 | throw new Error( |
| 730 | `${SCHEMA_MISMATCH_ENV}=1 supports only Fory benchmarks; rerun with --serializer fory` |
| 731 | ); |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | function decodeProtoObject(protoType, bytes) { |
| 736 | const message = protoType.decode(bytes); |
Tested by
no test coverage detected