Skip to content

Commit 7209f65

Browse files
DZakhzth
authored andcommitted
Use Js.Types.symbol for Core__Symbol.t
1 parent 33da2f7 commit 7209f65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Core__Symbol.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t
1+
type t = Js.Types.symbol
22

33
@val external make: string => t = "Symbol"
44
@val external getFor: string => t = "Symbol.for"

src/Core__Type.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
function classify(value) {
55
var match = Object.prototype.toString.call(value);
66
switch (match) {
7+
case "[object BigInt]" :
8+
return {
9+
TAG: /* BigInt */6,
10+
_0: value
11+
};
712
case "[object Boolean]" :
813
return {
914
TAG: /* Bool */0,

0 commit comments

Comments
 (0)