Skip to content

Commit d523716

Browse files
committed
Generated files.
1 parent 86f204c commit d523716

File tree

7 files changed

+44
-38
lines changed

7 files changed

+44
-38
lines changed

jscomp/main/builtin_cmi_datasets.ml

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

lib/4.06.1/rescript.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5492,10 +5492,8 @@ end = struct
54925492
* You should have received a copy of the GNU Lesser General Public License
54935493
* along with this program; if not, write to the Free Software
54945494
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
5495-
let version = "10.0.0"
5496-
5495+
let version = "10.0.0-beta.1"
54975496
let header = "// Generated by ReScript, PLEASE EDIT WITH CARE"
5498-
54995497
let package_name = ref "rescript"
55005498

55015499
end

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 5 additions & 7 deletions
Large diffs are not rendered by default.

lib/4.06.1/unstable/js_playground_compiler.ml

Lines changed: 5 additions & 7 deletions
Large diffs are not rendered by default.

lib/4.06.1/whole_compiler.ml

Lines changed: 5 additions & 7 deletions
Large diffs are not rendered by default.

lib/es6/js_types.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ function classify(x) {
1212
TAG: /* JSNumber */0,
1313
_0: x
1414
};
15+
} else if (ty === "bigint") {
16+
return {
17+
TAG: /* JSBigInt */5,
18+
_0: x
19+
};
1520
} else if (ty === "string") {
1621
return {
1722
TAG: /* JSString */1,
@@ -23,19 +28,19 @@ function classify(x) {
2328
} else {
2429
return /* JSFalse */0;
2530
}
26-
} else if (ty === "function") {
31+
} else if (ty === "symbol") {
2732
return {
28-
TAG: /* JSFunction */2,
33+
TAG: /* JSSymbol */4,
2934
_0: x
3035
};
31-
} else if (ty === "object") {
36+
} else if (ty === "function") {
3237
return {
33-
TAG: /* JSObject */3,
38+
TAG: /* JSFunction */2,
3439
_0: x
3540
};
3641
} else {
3742
return {
38-
TAG: /* JSSymbol */4,
43+
TAG: /* JSObject */3,
3944
_0: x
4045
};
4146
}
@@ -59,6 +64,8 @@ function test(x, v) {
5964
return typeof x === "object";
6065
case /* Symbol */7 :
6166
return typeof x === "symbol";
67+
case /* BigInt */8 :
68+
return typeof x === "bigint";
6269

6370
}
6471
}

lib/js/js_types.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ function classify(x) {
1212
TAG: /* JSNumber */0,
1313
_0: x
1414
};
15+
} else if (ty === "bigint") {
16+
return {
17+
TAG: /* JSBigInt */5,
18+
_0: x
19+
};
1520
} else if (ty === "string") {
1621
return {
1722
TAG: /* JSString */1,
@@ -23,19 +28,19 @@ function classify(x) {
2328
} else {
2429
return /* JSFalse */0;
2530
}
26-
} else if (ty === "function") {
31+
} else if (ty === "symbol") {
2732
return {
28-
TAG: /* JSFunction */2,
33+
TAG: /* JSSymbol */4,
2934
_0: x
3035
};
31-
} else if (ty === "object") {
36+
} else if (ty === "function") {
3237
return {
33-
TAG: /* JSObject */3,
38+
TAG: /* JSFunction */2,
3439
_0: x
3540
};
3641
} else {
3742
return {
38-
TAG: /* JSSymbol */4,
43+
TAG: /* JSObject */3,
3944
_0: x
4045
};
4146
}
@@ -59,6 +64,8 @@ function test(x, v) {
5964
return typeof x === "object";
6065
case /* Symbol */7 :
6166
return typeof x === "symbol";
67+
case /* BigInt */8 :
68+
return typeof x === "bigint";
6269

6370
}
6471
}

0 commit comments

Comments
 (0)