Skip to content

Commit 2d2eac4

Browse files
committed
snapshot
1 parent eecc3e7 commit 2d2eac4

33 files changed

+251
-194
lines changed

jscomp/main/builtin_cmj_datasets.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* 37f9aee904929179135d02d70039262c *)
1+
(* ca18d33db113a630fbefca602e7b569e *)
22
let module_names : string array = Obj.magic (
33
"Gc" (* 220 *),
44
"Js" (* 23 *),
@@ -10,7 +10,7 @@ let module_names : string array = Obj.magic (
1010
"Sys" (* 159 *),
1111
"Belt" (* 23 *),
1212
"Char" (* 243 *),
13-
"Lazy" (* 312 *),
13+
"Lazy" (* 288 *),
1414
"List" (* 922 *),
1515
"Node" (* 36 *),
1616
"Sort" (* 64 *),
@@ -147,7 +147,7 @@ let module_data : string array = Obj.magic (
147147
(* Sys *)"\132\149\166\190\000\000\000\139\000\000\000 \000\000\000n\000\000\000d\160\224\176&cygwin\144@\144\146C\176*getenv_opt\144\160\160A@@@\176*set_signal\144\160\160B@@@\176+catch_break\144\160\160A@@@\1767enable_runtime_warnings\144\160\160A@@@\1768runtime_warnings_enabled\144\160\160A@@@A",
148148
(* Belt *)"\132\149\166\190\000\000\000\003\000\000\000\001\000\000\000\003\000\000\000\003\160\128A",
149149
(* Char *)"\132\149\166\190\000\000\000\223\000\000\000<\000\000\000\197\000\000\000\186\160\b\000\000 \000\176#chr\144\160\160A@@@\176%equal\144\160\160B@@@\176'compare\144\160\160B@@\144\180B\160\176\001\004\001\"c1@\160\176\001\004\002\"c2@@\151\176I\160\144\004\t\160\144\004\b@\176\1922stdlib-406/char.ml\000K\001\n\001\001\n\021\192\004\002\000K\001\n\001\001\n&@\176'escaped\144\160\160A@@@\176)lowercase\144\160\160A@@@\176)uppercase\144\160\160A@@@\176/lowercase_ascii\144\160\160A@@@\176/uppercase_ascii\144\160\160A@@@A",
150-
(* Lazy *)"\132\149\166\190\000\000\001$\000\000\000K\000\000\000\252\000\000\000\235\160\240\176&is_val\144\160\160A@@@\176(from_fun\144\160\160A@@\144\180A\160\176\001\003\239!f@@\151\176\176\001\000\246\145\160,RE_LAZY_DONE%valueA\160\146C\160\180@@\147\192\144\004\016\160\146A@\176\1922stdlib-406/lazy.ml|\001\t\175\001\t\197\192\004\002|\001\t\175\001\t\203@@@\004\004\176(from_val\144\160\160A@@\144\180A\160\176\001\003\241!v@@\151\176\176\001\000\246\145\160,RE_LAZY_DONE%valueA\160\146B\160\144\004\r@\176\192\004\025~\001\t\205\001\t\227\192\004\026~\001\t\205\001\t\228@\176)force_val\144\160\160A@@@\176+lazy_is_val\144\004@@\176-lazy_from_fun\144\004>@\176-lazy_from_val\144\004#@A",
150+
(* Lazy *)"\132\149\166\190\000\000\001\012\000\000\000G\000\000\000\237\000\000\000\225\160\240\176&is_val\144\160\160A@@@\176(from_fun\144\160\160A@@\144\180A\160\176\001\003\239!f@@\151\176\176\001\000\246\145\160)LAZY_DONE#VALA\160\146C\160\180@@\147\192\144\004\016\160\146A@\176\1922stdlib-406/lazy.ml|\001\t\175\001\t\197\192\004\002|\001\t\175\001\t\203@@@\004\004\176(from_val\144\160\160A@@\144\180A\160\176\001\003\241!v@@\151\176\176\001\000\246\004\030A\160\146B\160\144\004\t@\176\192\004\021~\001\t\205\001\t\227\192\004\022~\001\t\205\001\t\228@\176)force_val\144\160\160A@@@\176+lazy_is_val\144\004<@\176-lazy_from_fun\144\004:@\176-lazy_from_val\144\004\031@A",
151151
(* List *)"\132\149\166\190\000\000\003\134\000\000\001\020\000\000\003\135\000\000\003T\160\b\000\000\208\000\176\"hd\144\160\160A@@@\176\"tl\144\160\160A@@@\176#map\144\160\160B@@@\176#mem\144\160\160B@@@\176#nth\144\160\160B@@@\176#rev\144\160\160A@@@\176$assq\144\160\160B@@@\176$cons\144\160\160B@@\144\180B\160\176\001\003\241!a@\160\176\001\003\242!l@@\151\176\176@\166\"::A@\160\144\004\012\160\144\004\011@\176\1922stdlib-406/list.mlX\001\004\193\001\004\208\192\004\002X\001\004\193\001\004\212@\176$find\144\160\160B@@@\176$init\144\160\160B@@@\176$iter\144\160\160B@@@\176$map2\144\160\160C@@@\176$mapi\144\160\160B@@@\176$memq\144\160\160B@@@\176$sort\144\160\160B@@@\176%assoc\144\160\160B@@@\176%iter2\144\160\160C@@@\176%iteri\144\160\160B@@@\176%merge\144\160\160C@@@\176%split\144\160\160A@@@\176&append\144\160\160B@@@\176&concat\144\160\160A@@@\176&exists\144\160\160B@@@\176&filter\144\160\160A\160A@@@\176&length\144\160\160A@@@\176'combine\144\160\160B@@@\176'exists2\144\160\160C@@@\176'flatten\144\004\031@\176'for_all\144\160\160B@@@\176'nth_opt\144\160\160B@@@\176'rev_map\144\160\160B@@@\176(assq_opt\144\160\160B@@@\176(find_all\144\004,@\176(find_opt\144\160\160B@@@\176(for_all2\144\160\160C@@@\176(mem_assq\144\160\160B@@@\176(rev_map2\144\160\160C@@@\176)assoc_opt\144\160\160B@@@\176)fast_sort\144\004u@\176)fold_left\144\160\160C@@@\176)mem_assoc\144\160\160B@@@\176)partition\144\160\160B@@@\176)sort_uniq\144\160\160B@@@\176*fold_left2\144\160\160D@@@\176*fold_right\144\160\160C@@@\176*rev_append\144\160\160B@@@\176+fold_right2\144\160\160D@@@\176+remove_assq\144\160\160B@@@\176+stable_sort\144\004\165@\176,remove_assoc\144\160\160B@@@\176/compare_lengths\144\160\160B@@@\1763compare_length_with\144\160\160B@@@A",
152152
(* Node *)"\132\149\166\190\000\000\000\016\000\000\000\007\000\000\000\020\000\000\000\019\160\144\176$test\144\160\160A@@@A",
153153
(* Sort *)"\132\149\166\190\000\000\000,\000\000\000\017\000\000\0004\000\000\0001\160\176\176$list\144\160\160B@@@\176%array\144\160\160B@@@\176%merge\144\160\160C@@@A",

jscomp/test/ext_filename_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ var node_parent = "..";
2424
var node_current = ".";
2525

2626
var cwd = {
27-
RE_LAZY_DONE: false,
28-
value: (function () {
27+
LAZY_DONE: false,
28+
VAL: (function () {
2929
return Caml_sys.caml_sys_getcwd(undefined);
3030
})
3131
};
@@ -226,8 +226,8 @@ function find_package_json_dir(cwd) {
226226
}
227227

228228
var package_dir = {
229-
RE_LAZY_DONE: false,
230-
value: (function () {
229+
LAZY_DONE: false,
230+
VAL: (function () {
231231
var cwd$1 = CamlinternalLazy.force(cwd);
232232
return find_root_filename(cwd$1, Test_literals.bsconfig_json);
233233
})

jscomp/test/gpr_3697_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ var CamlinternalLazy = require("../../lib/js/camlinternalLazy.js");
55
function fix(param) {
66
return /* Fix */{
77
_0: {
8-
RE_LAZY_DONE: false,
9-
value: (function () {
8+
LAZY_DONE: false,
9+
VAL: (function () {
1010
return fix(undefined);
1111
})
1212
}

jscomp/test/hamming_test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ function pr(param) {
124124

125125
function map(f, l) {
126126
return {
127-
RE_LAZY_DONE: false,
128-
value: (function () {
127+
LAZY_DONE: false,
128+
VAL: (function () {
129129
var match = CamlinternalLazy.force(l);
130130
return /* Cons */{
131131
_0: Curry._1(f, match._0),
@@ -137,8 +137,8 @@ function map(f, l) {
137137

138138
function merge(cmp, l1, l2) {
139139
return {
140-
RE_LAZY_DONE: false,
141-
value: (function () {
140+
LAZY_DONE: false,
141+
VAL: (function () {
142142
var match = CamlinternalLazy.force(l1);
143143
var match$1 = CamlinternalLazy.force(l2);
144144
var ll2 = match$1._1;
@@ -189,8 +189,8 @@ function iter_interval(f, _l, _param) {
189189
}
190190

191191
var hamming = {
192-
RE_LAZY_DONE: false,
193-
value: (function () {
192+
LAZY_DONE: false,
193+
VAL: (function () {
194194
return /* Cons */{
195195
_0: nn1,
196196
_1: merge(cmp, ham2, merge(cmp, ham3, ham5))
@@ -199,22 +199,22 @@ var hamming = {
199199
};
200200

201201
var ham2 = {
202-
RE_LAZY_DONE: false,
203-
value: (function () {
202+
LAZY_DONE: false,
203+
VAL: (function () {
204204
return CamlinternalLazy.force(map(x2, hamming));
205205
})
206206
};
207207

208208
var ham3 = {
209-
RE_LAZY_DONE: false,
210-
value: (function () {
209+
LAZY_DONE: false,
210+
VAL: (function () {
211211
return CamlinternalLazy.force(map(x3, hamming));
212212
})
213213
};
214214

215215
var ham5 = {
216-
RE_LAZY_DONE: false,
217-
value: (function () {
216+
LAZY_DONE: false,
217+
VAL: (function () {
218218
return CamlinternalLazy.force(map(x5, hamming));
219219
})
220220
};

jscomp/test/lazy_demo.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
var CamlinternalLazy = require("../../lib/js/camlinternalLazy.js");
44

55
var lazy1 = {
6-
RE_LAZY_DONE: false,
7-
value: (function () {
6+
LAZY_DONE: false,
7+
VAL: (function () {
88
console.log("Hello, lazy");
99
return 1;
1010
})
1111
};
1212

1313
var lazy2 = {
14-
RE_LAZY_DONE: true,
15-
value: 3
14+
LAZY_DONE: true,
15+
VAL: 3
1616
};
1717

1818
console.log(lazy1, lazy2);

jscomp/test/lazy_test.js

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ var u = {
1010
};
1111

1212
var v = {
13-
RE_LAZY_DONE: false,
14-
value: (function () {
13+
LAZY_DONE: false,
14+
VAL: (function () {
1515
u.contents = 32;
1616

1717
})
@@ -54,16 +54,16 @@ var s = {
5454
};
5555

5656
var set_true = {
57-
RE_LAZY_DONE: false,
58-
value: (function () {
57+
LAZY_DONE: false,
58+
VAL: (function () {
5959
s.contents = 1;
6060

6161
})
6262
};
6363

6464
var set_false = {
65-
RE_LAZY_DONE: false,
66-
value: (function () {
65+
LAZY_DONE: false,
66+
VAL: (function () {
6767
s.contents = undefined;
6868

6969
})
@@ -92,8 +92,8 @@ var u_v = {
9292
};
9393

9494
var u$1 = {
95-
RE_LAZY_DONE: false,
96-
value: (function () {
95+
LAZY_DONE: false,
96+
VAL: (function () {
9797
u_v.contents = 2;
9898

9999
})
@@ -104,38 +104,38 @@ CamlinternalLazy.force(u$1);
104104
var exotic = CamlinternalLazy.force;
105105

106106
var l_from_fun = {
107-
RE_LAZY_DONE: false,
108-
value: (function () {
107+
LAZY_DONE: false,
108+
VAL: (function () {
109109
return 3;
110110
})
111111
};
112112

113113
var forward_test = {
114-
RE_LAZY_DONE: false,
115-
value: (function () {
114+
LAZY_DONE: false,
115+
VAL: (function () {
116116
var u = 3;
117117
u = u + 1 | 0;
118118
return u;
119119
})
120120
};
121121

122122
var f005 = {
123-
RE_LAZY_DONE: true,
124-
value: 6
123+
LAZY_DONE: true,
124+
VAL: 6
125125
};
126126

127127
var f006 = {
128-
RE_LAZY_DONE: false,
129-
value: (function () {
128+
LAZY_DONE: false,
129+
VAL: (function () {
130130
return function (param) {
131131
return 3;
132132
};
133133
})
134134
};
135135

136136
var f007 = {
137-
RE_LAZY_DONE: false,
138-
value: (function () {
137+
LAZY_DONE: false,
138+
VAL: (function () {
139139
throw {
140140
RE_EXN_ID: "Not_found",
141141
Error: new Error()
@@ -144,8 +144,8 @@ var f007 = {
144144
};
145145

146146
var f008 = {
147-
RE_LAZY_DONE: false,
148-
value: (function () {
147+
LAZY_DONE: false,
148+
VAL: (function () {
149149
console.log("hi");
150150
throw {
151151
RE_EXN_ID: "Not_found",
@@ -156,29 +156,29 @@ var f008 = {
156156

157157
function a2(x) {
158158
return {
159-
RE_LAZY_DONE: true,
160-
value: x
159+
LAZY_DONE: true,
160+
VAL: x
161161
};
162162
}
163163

164164
var a3 = {
165-
RE_LAZY_DONE: true,
166-
value: 3
165+
LAZY_DONE: true,
166+
VAL: 3
167167
};
168168

169169
var a4 = {
170-
RE_LAZY_DONE: true,
171-
value: 3
170+
LAZY_DONE: true,
171+
VAL: 3
172172
};
173173

174174
var a5 = {
175-
RE_LAZY_DONE: true,
176-
value: undefined
175+
LAZY_DONE: true,
176+
VAL: undefined
177177
};
178178

179179
var a6 = {
180-
RE_LAZY_DONE: true,
181-
value: undefined
180+
LAZY_DONE: true,
181+
VAL: undefined
182182
};
183183

184184
var a7 = CamlinternalLazy.force(a5);
@@ -239,8 +239,8 @@ Mt.from_pair_suites("Lazy_test", {
239239
return {
240240
TAG: /* Eq */0,
241241
_0: CamlinternalLazy.force({
242-
RE_LAZY_DONE: true,
243-
value: 3
242+
LAZY_DONE: true,
243+
VAL: 3
244244
}),
245245
_1: 3
246246
};
@@ -253,10 +253,10 @@ Mt.from_pair_suites("Lazy_test", {
253253
return {
254254
TAG: /* Eq */0,
255255
_0: CamlinternalLazy.force(CamlinternalLazy.force({
256-
RE_LAZY_DONE: true,
257-
value: {
258-
RE_LAZY_DONE: true,
259-
value: 3
256+
LAZY_DONE: true,
257+
VAL: {
258+
LAZY_DONE: true,
259+
VAL: 3
260260
}
261261
})),
262262
_1: 3
@@ -271,8 +271,8 @@ Mt.from_pair_suites("Lazy_test", {
271271
return {
272272
TAG: /* Eq */0,
273273
_0: CamlinternalLazy.force(CamlinternalLazy.force({
274-
RE_LAZY_DONE: true,
275-
value: forward_test
274+
LAZY_DONE: true,
275+
VAL: forward_test
276276
})),
277277
_1: 4
278278
};
@@ -318,8 +318,8 @@ Mt.from_pair_suites("Lazy_test", {
318318
return {
319319
TAG: /* Ok */4,
320320
_0: Lazy.is_val({
321-
RE_LAZY_DONE: true,
322-
value: 3
321+
LAZY_DONE: true,
322+
VAL: 3
323323
})
324324
};
325325
})
@@ -331,8 +331,8 @@ Mt.from_pair_suites("Lazy_test", {
331331
return {
332332
TAG: /* Ok */4,
333333
_0: !Lazy.is_val({
334-
RE_LAZY_DONE: false,
335-
value: (function () {
334+
LAZY_DONE: false,
335+
VAL: (function () {
336336
throw {
337337
RE_EXN_ID: "Not_found",
338338
Error: new Error()

jscomp/test/mpr_6033_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function f(x) {
3535
}
3636

3737
var x = {
38-
RE_LAZY_DONE: true,
39-
value: "def"
38+
LAZY_DONE: true,
39+
VAL: "def"
4040
};
4141

4242
CamlinternalLazy.force(x);

jscomp/test/ocaml_parsetree_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,8 +2566,8 @@ function symbol_docs_lazy(param) {
25662566
var p1 = Parsing.symbol_start_pos(undefined);
25672567
var p2 = Parsing.symbol_end_pos(undefined);
25682568
return {
2569-
RE_LAZY_DONE: false,
2570-
value: (function () {
2569+
LAZY_DONE: false,
2570+
VAL: (function () {
25712571
return {
25722572
docs_pre: get_pre_docs(p1),
25732573
docs_post: get_post_docs(p2)
@@ -2589,8 +2589,8 @@ function mark_rhs_docs(pos1, pos2) {
25892589
function symbol_text_lazy(param) {
25902590
var pos = Parsing.symbol_start_pos(undefined);
25912591
return {
2592-
RE_LAZY_DONE: false,
2593-
value: (function () {
2592+
LAZY_DONE: false,
2593+
VAL: (function () {
25942594
return get_text(pos);
25952595
})
25962596
};

0 commit comments

Comments
 (0)