Skip to content

Commit 0d3c199

Browse files
committed
copy change to runtime js file
1 parent f366ee8 commit 0d3c199

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jscomp/runtime/js.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ type + 'a undefined
6666
(** value of this type can be either [undefined] or ['a]
6767
this type is the same as type [t] in {!Undefined} *)
6868

69-
type + 'a nullable
69+
type + 'a nullable =
70+
| Present of 'a
71+
| Null [@as null]
72+
| Undefined [@as undefined]
73+
[@@unboxed]
7074
(** value of this type can be [undefined], [null] or ['a]
7175
this type is the same as type [t] n {!Null_undefined} *)
7276

0 commit comments

Comments
 (0)