Skip to content

Commit 86f204c

Browse files
cometkimcristianoc
authored andcommitted
reorder cases
1 parent 432d4ef commit 86f204c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jscomp/others/js_types.ml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,19 @@ let classify (x : 'a) : tagged_t =
7272
JSNull else
7373
if ty = "number" then
7474
JSNumber (Obj.magic x) else
75+
if ty = "bigint" then
76+
JSBigInt (Obj.magic x) else
7577
if ty = "string" then
7678
JSString (Obj.magic x) else
7779
if ty = "boolean" then
78-
if (Obj.magic x) = true then JSTrue
80+
if (Obj.magic x) = true then JSTrue
7981
else JSFalse else
80-
if ty = "function" then
81-
JSFunction (Obj.magic x) else
82-
if ty = "object" then
83-
JSObject (Obj.magic x) else
8482
if ty = "symbol" then
85-
JSSymbol (Obj.magic x)
83+
JSSymbol (Obj.magic x) else
84+
if ty = "function" then
85+
JSFunction (Obj.magic x)
8686
else
87-
JSBigInt (Obj.magic x)
87+
JSObject (Obj.magic x)
8888

8989

9090
let test (type a) (x : 'a) (v : a t) : bool =

0 commit comments

Comments
 (0)