Skip to content

Commit cf62db8

Browse files
committed
primitive bigint instead of Js_bigint.t
1 parent a9e4c16 commit cf62db8

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

jscomp/others/js_bigint.res

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/*** JavaScript BigInt API */
22

3-
type t = bigint
4-
5-
external \"~-": t => t = "%negbigint"
6-
external \"~+": t => t = "%identity"
7-
external \"+": (t, t) => t = "%addbigint"
8-
external \"-": (t, t) => t = "%subbigint"
9-
external \"*": (t, t) => t = "%mulbigint"
10-
external \"/": (t, t) => t = "%divbigint"
11-
external mod: (t, t) => t = "%modbigint"
3+
external \"~-": bigint => bigint = "%negbigint"
4+
external \"~+": bigint => bigint = "%identity"
5+
external \"+": (bigint, bigint) => bigint = "%addbigint"
6+
external \"-": (bigint, bigint) => bigint = "%subbigint"
7+
external \"*": (bigint, bigint) => bigint = "%mulbigint"
8+
external \"/": (bigint, bigint) => bigint = "%divbigint"
9+
external mod: (bigint, bigint) => bigint = "%modbigint"

jscomp/others/js_types.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
type symbol
2727

2828
/** Js bigint type only available in ES2020 */
29-
type bigint_val = Js_bigint.t
29+
type bigint_val = bigint
3030

3131
type obj_val
3232
/** This type has only one value `undefined` */

jscomp/others/release.ninja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ o others/js_string.cmi others/js_string.cmj : cc others/js_string.res | others/b
5757
o others/js_string2.cmi others/js_string2.cmj : cc others/js_string2.res | others/belt_internals.cmi others/js.cmi others/js_array2.cmj others/js_re.cmj $bsc
5858
o others/js_typed_array.cmi others/js_typed_array.cmj : cc others/js_typed_array.res | others/belt_internals.cmi others/js.cmi others/js.cmj others/js_typed_array2.cmj $bsc
5959
o others/js_typed_array2.cmi others/js_typed_array2.cmj : cc others/js_typed_array2.res | others/belt_internals.cmi others/js.cmi others/js.cmj $bsc
60-
o others/js_types.cmj : cc_cmi others/js_types.res | others/belt_internals.cmi others/js.cmi others/js.cmj others/js_bigint.cmj others/js_null.cmj others/js_types.cmi $bsc
60+
o others/js_types.cmj : cc_cmi others/js_types.res | others/belt_internals.cmi others/js.cmi others/js.cmj others/js_null.cmj others/js_types.cmi $bsc
6161
o others/js_types.cmi : cc others/js_types.resi | others/belt_internals.cmi others/js.cmi $bsc
6262
o others/js_undefined.cmj : cc_cmi others/js_undefined.res | others/belt_internals.cmi others/js.cmi others/js.cmj others/js_exn.cmj others/js_undefined.cmi $bsc
6363
o others/js_undefined.cmi : cc others/js_undefined.resi | others/belt_internals.cmi others/js.cmi others/js.cmj $bsc

0 commit comments

Comments
 (0)