Skip to content

Commit f712a65

Browse files
committed
snapshot
1 parent c5a1105 commit f712a65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+8735
-8794
lines changed

jscomp/main/builtin_cmi_datasets.ml

+6-6
Large diffs are not rendered by default.

jscomp/main/builtin_cmj_datasets.ml

+8-8
Large diffs are not rendered by default.

jscomp/test/a_filename_test.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -45,58 +45,58 @@ eq("File \"a_filename_test.ml\", line 10, characters 5-12", [
4545
]);
4646

4747
eq("File \"a_filename_test.ml\", line 22, characters 5-12", Ext_filename_test.node_relative_path(true, {
48-
HASH: /* File */781515420,
48+
HASH: "File",
4949
VAL: "./a/b.c"
5050
}, {
51-
HASH: /* File */781515420,
51+
HASH: "File",
5252
VAL: "./a/u/g.c"
5353
}), "./u/g.c");
5454

5555
eq("File \"a_filename_test.ml\", line 27, characters 5-12", Ext_filename_test.node_relative_path(true, {
56-
HASH: /* File */781515420,
56+
HASH: "File",
5757
VAL: "./a/b.c"
5858
}, {
59-
HASH: /* File */781515420,
59+
HASH: "File",
6060
VAL: "xxxghsoghos/ghsoghso/node_modules/buckle-stdlib/list.js"
6161
}), "buckle-stdlib/list.js");
6262

6363
eq("File \"a_filename_test.ml\", line 33, characters 5-12", Ext_filename_test.node_relative_path(true, {
64-
HASH: /* File */781515420,
64+
HASH: "File",
6565
VAL: "./a/b.c"
6666
}, {
67-
HASH: /* File */781515420,
67+
HASH: "File",
6868
VAL: "xxxghsoghos/ghsoghso/node_modules//buckle-stdlib/list.js"
6969
}), "buckle-stdlib/list.js");
7070

7171
eq("File \"a_filename_test.ml\", line 39, characters 5-12", Ext_filename_test.node_relative_path(true, {
72-
HASH: /* File */781515420,
72+
HASH: "File",
7373
VAL: "./a/b.c"
7474
}, {
75-
HASH: /* File */781515420,
75+
HASH: "File",
7676
VAL: "xxxghsoghos/ghsoghso/node_modules/./buckle-stdlib/list.js"
7777
}), "buckle-stdlib/list.js");
7878

7979
eq("File \"a_filename_test.ml\", line 45, characters 5-12", Ext_filename_test.node_relative_path(true, {
80-
HASH: /* File */781515420,
80+
HASH: "File",
8181
VAL: "./a/c.js"
8282
}, {
83-
HASH: /* File */781515420,
83+
HASH: "File",
8484
VAL: "./a/b"
8585
}), "./b");
8686

8787
eq("File \"a_filename_test.ml\", line 50, characters 5-12", Ext_filename_test.node_relative_path(true, {
88-
HASH: /* File */781515420,
88+
HASH: "File",
8989
VAL: "./a/c"
9090
}, {
91-
HASH: /* File */781515420,
91+
HASH: "File",
9292
VAL: "./a/b.js"
9393
}), "./b.js");
9494

9595
eq("File \"a_filename_test.ml\", line 55, characters 5-12", Ext_filename_test.node_relative_path(true, {
96-
HASH: /* Dir */3405101,
96+
HASH: "Dir",
9797
VAL: "./a/"
9898
}, {
99-
HASH: /* File */781515420,
99+
HASH: "File",
100100
VAL: "./a/b.js"
101101
}), "./b.js");
102102

jscomp/test/ast_abstract_test.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ var v1 = {
5959

6060
var jsMapperConstantArray = [
6161
[
62-
97,
62+
"a",
6363
"a"
6464
],
6565
[
66-
98,
66+
"b",
6767
"b"
6868
],
6969
[
70-
99,
70+
"c",
7171
"c"
7272
]
7373
];
@@ -84,15 +84,15 @@ function idx(v) {
8484
return eq("File \"ast_abstract_test.ml\", line 32, characters 17-24", xFromJs(xToJs(v)), v);
8585
}
8686

87-
var x0 = xToJs(/* a */97);
87+
var x0 = xToJs("a");
8888

89-
var x1 = xToJs(/* b */98);
89+
var x1 = xToJs("b");
9090

91-
idx(/* a */97);
91+
idx("a");
9292

93-
idx(/* b */98);
93+
idx("b");
9494

95-
idx(/* c */99);
95+
idx("c");
9696

9797
var jsMapperConstantArray$1 = [
9898
0,

jscomp/test/ast_js_mapper_poly_test.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ function eq(loc, x, y) {
3232

3333
var jsMapperConstantArray = [
3434
[
35-
67,
35+
"C",
3636
"C"
3737
],
3838
[
39-
68,
39+
"D",
4040
"D"
4141
],
4242
[
43-
102,
43+
"f",
4444
"x"
4545
]
4646
];
@@ -69,18 +69,18 @@ function eqUOpt(x, y) {
6969
}
7070
}
7171

72-
eq("File \"ast_js_mapper_poly_test.ml\", line 25, characters 5-12", eqUOpt(uFromJs("x"), /* f */102), true);
72+
eq("File \"ast_js_mapper_poly_test.ml\", line 25, characters 5-12", eqUOpt(uFromJs("x"), "f"), true);
7373

74-
eq("File \"ast_js_mapper_poly_test.ml\", line 26, characters 5-12", eqUOpt(uFromJs("D"), /* D */68), true);
74+
eq("File \"ast_js_mapper_poly_test.ml\", line 26, characters 5-12", eqUOpt(uFromJs("D"), "D"), true);
7575

76-
eq("File \"ast_js_mapper_poly_test.ml\", line 27, characters 5-12", eqUOpt(uFromJs("C"), /* C */67), true);
76+
eq("File \"ast_js_mapper_poly_test.ml\", line 27, characters 5-12", eqUOpt(uFromJs("C"), "C"), true);
7777

7878
eq("File \"ast_js_mapper_poly_test.ml\", line 28, characters 5-12", eqUOpt(uFromJs("f"), undefined), true);
7979

8080
eq("File \"ast_js_mapper_poly_test.ml\", line 29, characters 5-12", $$Array.map(uToJs, [
81-
/* D */68,
82-
/* C */67,
83-
/* f */102
81+
"D",
82+
"C",
83+
"f"
8484
]), [
8585
"D",
8686
"C",

jscomp/test/ast_js_mapper_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ function aFromJs(param) {
6969

7070
var jsMapperConstantArray$1 = [
7171
[
72-
21902,
72+
"b0",
7373
"b0"
7474
],
7575
[
76-
21903,
76+
"b1",
7777
"b1"
7878
],
7979
[
80-
21904,
80+
"b2",
8181
"b2"
8282
],
8383
[
84-
21905,
84+
"b3",
8585
"b3"
8686
]
8787
];
@@ -94,7 +94,7 @@ function bFromJs(param) {
9494
return Js_mapperRt.revSearchAssert(4, jsMapperConstantArray$1, param);
9595
}
9696

97-
bToJs(/* b0 */21902);
97+
bToJs("b0");
9898

9999
exports.tToJs = tToJs;
100100
exports.tFromJs = tFromJs;

jscomp/test/ast_mapper_defensive_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ function bFromJs(param) {
5555

5656
var jsMapperConstantArray$1 = [
5757
[
58-
22125,
58+
"c0",
5959
"c0"
6060
],
6161
[
62-
22126,
62+
"c1",
6363
"c1"
6464
],
6565
[
66-
22127,
66+
"c2",
6767
"c2"
6868
]
6969
];

jscomp/test/bb.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33

44
function f(x) {
5-
if (x === /* b */98) {
5+
if (x === "b") {
66
return "b";
7-
} else if (x === /* c */99) {
7+
} else if (x === "c") {
88
return "c";
99
} else {
1010
return "a";
@@ -14,11 +14,11 @@ function f(x) {
1414
function ff(x) {
1515
switch (x) {
1616
case "a" :
17-
return /* a */97;
17+
return "a";
1818
case "b" :
19-
return /* b */98;
19+
return "b";
2020
case "c" :
21-
return /* c */99;
21+
return "c";
2222
default:
2323
throw {
2424
RE_EXN_ID: "Assert_failure",
@@ -36,13 +36,13 @@ function test(x) {
3636
var match;
3737
switch (x) {
3838
case "a" :
39-
match = /* a */97;
39+
match = "a";
4040
break;
4141
case "b" :
42-
match = /* b */98;
42+
match = "b";
4343
break;
4444
case "c" :
45-
match = /* c */99;
45+
match = "c";
4646
break;
4747
default:
4848
throw {
@@ -55,9 +55,9 @@ function test(x) {
5555
Error: new Error()
5656
};
5757
}
58-
if (match === /* b */98) {
58+
if (match === "b") {
5959
return "b";
60-
} else if (match === /* c */99) {
60+
} else if (match === "c") {
6161
return "c";
6262
} else {
6363
return "a";
@@ -66,11 +66,11 @@ function test(x) {
6666

6767
var test_poly = "a";
6868

69-
var c = f(/* a */97);
69+
var c = f("a");
7070

71-
var d = f(/* b */98);
71+
var d = f("b");
7272

73-
var e = f(/* c */99);
73+
var e = f("c");
7474

7575
exports.f = f;
7676
exports.ff = ff;

0 commit comments

Comments
 (0)