Skip to content

Commit c0a005b

Browse files
committed
Omit instead of remove
1 parent 83802dd commit c0a005b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/bindings/crypto/bindings/bigint256.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ const Bigint256Bindings = withPrefix('caml_bigint_256', {
3838
if (x === y) return 0;
3939
return 1;
4040
},
41+
print([, x]: Bigint256): void {
42+
console.log(x.toString());
43+
},
44+
to_string(x: Bigint256) {
45+
return toMlStringAscii(x[1].toString());
46+
},
4147
// TODO performance critical
4248
test_bit(b: Bigint256, i: number): MlBool {
4349
return MlBool(!!(b[1] & (1n << BigInt(i))));

src/bindings/crypto/bindings/bindings.unit-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function option<T, S>(spec: Spec<T, S>): Spec<MlOption<T>, S | undefined> {
106106
};
107107
}
108108

109-
equivalentRecord(Bigint256Bindings, wasm, {
109+
equivalentRecord(Bigint256Bindings as Omit<typeof Bigint256Bindings, "caml_bigint_256_print" | "caml_bigint_256_to_string">, wasm, {
110110
caml_bigint_256_of_numeral: undefined, // TODO
111111
caml_bigint_256_of_decimal_string: { from: [decimalString], to: bigint256 },
112112
caml_bigint_256_num_limbs: { from: [], to: number },

0 commit comments

Comments
 (0)