@@ -79,31 +79,31 @@ print_endline(String.make 1 "Ɋ".[0] ^ String.make 1 "Ɋ".[1]);;
79
79
24 : Stdlib = global_data.Stdlib ,
80
80
25 : Stdlib_Random = global_data.Stdlib__Random ,
81
81
26 : Stdlib_String = global_data.Stdlib__String ;
82
- 27 : /*<< test.ml 3 0 >> */ /*<< test.ml 3 0 >> */ caml_call1(Stdlib [46 ], greeting);
83
- 28 : /*<< test.ml 5 0 >> */ /*<< test.ml 5 0 >> */ caml_call1
82
+ 27 : /*<< test.ml : 3 : 0 >> */ /*<< test.ml: 3 : 0 >> */ caml_call1 (Stdlib [46 ], greeting );
83
+ 28 : /*<< test.ml : 5 : 0 >> */ /*<< test.ml: 5 : 0 >> */ caml_call1
84
84
29 : (Stdlib [46 ], greeting $ 0 );
85
- 30 : /*<< test.ml 7 47 >> */ var
86
- 31 : /*<< test.ml 7 47 >> */ _a_ =
87
- 32 : /*<< test.ml 7 47 >> */ caml_call1(Stdlib_Random [5 ], 30 ),
88
- 33 : /*<< test.ml 7 34 >> */ unicodeLength =
89
- 34 : /*<< test.ml 7 34 >> */ runtime.caml_ml_string_length
90
- 35 : ( /*<< test.ml 7 34 >> */ caml_call2(Stdlib_String [1 ], _a_, 105 )),
91
- 36 : /*<< test.ml 8 56 >> */ _b_ =
92
- 37 : /*<< test.ml 8 56 >> */ caml_call1(Stdlib [33 ], unicodeLength),
93
- 38 : /*<< test.ml 8 14 >> */ _c_ =
94
- 39 : /*<< test.ml 8 14 >> */ caml_call2
85
+ 30 : /*<< test.ml : 7 : 47 >> */ var
86
+ 31 : /*<< test.ml: 7 : 47 >> */ _a_ =
87
+ 32 : /*<< test.ml: 7 : 47 >> */ caml_call1 (Stdlib_Random [5 ], 30 ),
88
+ 33 : /*<< test.ml: 7 : 34 >> */ unicodeLength =
89
+ 34 : /*<< test.ml: 7 : 34 >> */ runtime .caml_ml_string_length
90
+ 35 : ( /*<< test.ml: 7 : 34 >> */ caml_call2 (Stdlib_String [1 ], _a_ , 105 )),
91
+ 36 : /*<< test.ml: 8 : 56 >> */ _b_ =
92
+ 37 : /*<< test.ml: 8 : 56 >> */ caml_call1 (Stdlib [33 ], unicodeLength ),
93
+ 38 : /*<< test.ml: 8 : 14 >> */ _c_ =
94
+ 39 : /*<< test.ml: 8 : 14 >> */ caml_call2
95
95
40 : (Stdlib [28 ],
96
96
41 : caml_string_of_jsbytes ('String .length("\xc9\x8a " ) should be two :'),
97
97
42 : _b_ );
98
- 43 : /*<< test.ml 8 0 >> */ /*<< test.ml 8 0 >> */ caml_call1(Stdlib [46 ], _c_);
99
- 44 : /*<< test.ml 9 39 >> */ var
100
- 45 : /*<< test.ml 9 39 >> */ _d_ =
101
- 46 : /*<< test.ml 9 39 >> */ caml_call2(Stdlib_String [1 ], 1 , 138 ),
102
- 47 : /*<< test.ml 9 14 >> */ _e_ =
103
- 48 : /*<< test.ml 9 14 >> */ caml_call2(Stdlib_String [1 ], 1 , 201 ),
104
- 49 : /*<< test.ml 9 13 >> */ _f_ =
105
- 50 : /*<< test.ml 9 13 >> */ caml_call2(Stdlib [28 ], _e_, _d_);
106
- 51 : /*<< test.ml 9 0 >> */ /*<< test.ml 9 0 >> */ caml_call1(Stdlib [46 ], _f_);
98
+ 43 : /*<< test.ml : 8 : 0 >> */ /*<< test.ml: 8 : 0 >> */ caml_call1 (Stdlib [46 ], _c_ );
99
+ 44 : /*<< test.ml : 9 : 39 >> */ var
100
+ 45 : /*<< test.ml: 9 : 39 >> */ _d_ =
101
+ 46 : /*<< test.ml: 9 : 39 >> */ caml_call2 (Stdlib_String [1 ], 1 , 138 ),
102
+ 47 : /*<< test.ml: 9 : 14 >> */ _e_ =
103
+ 48 : /*<< test.ml: 9 : 14 >> */ caml_call2 (Stdlib_String [1 ], 1 , 201 ),
104
+ 49 : /*<< test.ml: 9 : 13 >> */ _f_ =
105
+ 50 : /*<< test.ml: 9 : 13 >> */ caml_call2 (Stdlib [28 ], _e_ , _d_ );
106
+ 51 : /*<< test.ml : 9 : 0 >> */ /*<< test.ml: 9 : 0 >> */ caml_call1 (Stdlib [46 ], _f_ );
107
107
52 : var Test = [0 , greeting$ 0 , unicodeLength];
108
108
53 : runtime.caml_register_global(8 , Test , " Test" );
109
109
54 : return;
@@ -247,22 +247,22 @@ end
247
247
22 : ? f(a0, a1, a2, a3, a4, a5, a6, a7)
248
248
23 : : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4, a5, a6, a7]);
249
249
24 : }
250
- 25 : /*<< test.ml 14 22 >> */ var
250
+ 25 : /*<< test.ml : 14 : 22 >> */ var
251
251
26 : global_data = runtime .caml_get_global_data(),
252
252
27 : cst = caml_string_of_jsbytes ("" ),
253
253
28 : partial = [4 , 0 , 0 , 0 , [12 , 45 , [4 , 0 , 0 , 0 , 0 ]]],
254
254
29 : Stdlib_Printf = global_data .Stdlib__Printf ,
255
- 30 : /*<< test.ml 14 22 >> */ executable_name =
256
- 31 : /*<< test.ml 14 22 >> */ runtime.caml_sys_executable_name(0 ),
257
- 32 : os_type = /*<< test.ml 15 22 >> */ runtime.caml_sys_get_config(0 )[1 ],
255
+ 30 : /*<< test.ml: 14 : 22 >> */ executable_name =
256
+ 31 : /*<< test.ml: 14 : 22 >> */ runtime .caml_sys_executable_name(0 ),
257
+ 32 : os_type = /*<< test.ml: 15 : 22 >> */ runtime .caml_sys_get_config(0 )[1 ],
258
258
33 : backend_type = [0 , caml_string_of_jsbytes ("js_of_ocaml" )],
259
259
34 : unix = runtime .caml_sys_const_ostype_unix(0 ),
260
260
35 : win32 = runtime .caml_sys_const_ostype_win32(0 ),
261
261
36 : cygwin = runtime .caml_sys_const_ostype_cygwin(0 ),
262
262
37 : max_array_length = runtime .caml_sys_const_max_wosize(0 ),
263
263
38 : max_floatarray_length = max_array_length / 2 | 0 ,
264
264
39 : max_string_length = (4 * max_array_length | 0 ) - 1 | 0 ,
265
- 40 : /*<< test.ml 28 12 >> */ Unhandled =
265
+ 40 : /*<< test.ml: 28 : 12 >> */ Unhandled =
266
266
41 : [248 ,
267
267
42 : caml_string_of_jsbytes ("Test.Unhandled" ),
268
268
43 : runtime .caml_fresh_oo_id(0 )],
@@ -315,66 +315,66 @@ end
315
315
90: int_size = 32;
316
316
91: function format_backtrace_slot(pos, slot){
317
317
92: function info(is_raise){
318
- 93: /*<<test.ml 46 4>>*/ return is_raise
318
+ 93: /*<<test.ml:46: 4>>*/ return is_raise
319
319
94: ? 0 === pos ? cst_Raised_at : cst_Re_raised_at
320
320
95: : 0 === pos ? cst_Raised_by_primitive_operat : cst_Called_from;
321
- 96: /*<<test.ml 49 75>>*/ }
322
- 97: /*<<test.ml 51 2>>*/ if(0 === slot[0]){
323
- 98: /*<<test.ml 59 14>>*/ var
321
+ 96: /*<<test.ml:49: 75>>*/ }
322
+ 97: /*<<test.ml:51: 2>>*/ if(0 === slot[0]){
323
+ 98: /*<<test.ml:59: 14>>*/ var
324
324
99: _h_ = slot[5],
325
325
100: _i_ = slot[4],
326
326
101: _j_ = slot[3],
327
327
102: _k_ = slot[6] ? cst_inlined : cst,
328
328
103: _l_ = slot[2],
329
329
104: _m_ = slot[7],
330
- 105: /*<<test.ml 59 14>>*/ _n_ = info(slot[1]);
331
- 106: /*<<test.ml 58 6>>*/ return [0,
332
- 107: /*<<test.ml 58 11>>*/ caml_call8
330
+ 105: /*<<test.ml:59: 14>>*/ _n_ = info(slot[1]);
331
+ 106: /*<<test.ml:58: 6>>*/ return [0,
332
+ 107: /*<<test.ml:58: 11>>*/ caml_call8
333
333
108: (Stdlib_Printf[4], _a_, _n_, _m_, _l_, _k_, _j_, _i_, _h_)];
334
334
109: }
335
- 110: if(slot[1]) /*<<test.ml 54 50>>*/ return 0;
336
- 111: /*<<test.ml 56 51>>*/ /*<<test.ml 56 51>>*/ var _o_ = info(0);
337
- 112: /*<<test.ml 56 8>>*/ return [0,
338
- 113: /*<<test.ml 56 13>>*/ caml_call2(Stdlib_Printf[4], _b_, _o_)];
339
- 114: /*<<test.ml 61 52>>*/ }
335
+ 110: if(slot[1]) /*<<test.ml:54: 50>>*/ return 0;
336
+ 111: /*<<test.ml:56: 51>>*/ /*<<test.ml:56: 51>>*/ var _o_ = info(0);
337
+ 112: /*<<test.ml:56: 8>>*/ return [0,
338
+ 113: /*<<test.ml:56: 13>>*/ caml_call2(Stdlib_Printf[4], _b_, _o_)];
339
+ 114: /*<<test.ml:61: 52>>*/ }
340
340
115: function print_exception_backtrace(outchan, backtrace){
341
- 116: /*<<test.ml 64 2>>*/ if(! backtrace)
342
- 117: /*<<test.ml 66 6>>*/ return /*<<test.ml 66 6>>*/ caml_call2
341
+ 116: /*<<test.ml:64: 2>>*/ if(! backtrace)
342
+ 117: /*<<test.ml:66: 6>>*/ return /*<<test.ml:66: 6>>*/ caml_call2
343
343
118: (Stdlib_Printf[1], outchan, _d_);
344
344
119: var a = backtrace[1], _f_ = a.length - 1 - 1 | 0, _e_ = 0;
345
345
120: if(_f_ >= 0){
346
346
121: var i = _e_;
347
347
122: for(;;){
348
- 123: /*<<test.ml 70 14>>*/ /*<<test.ml 70 14>>*/ var
348
+ 123: /*<<test.ml:70: 14>>*/ /*<<test.ml:70: 14>>*/ var
349
349
124: match = format_backtrace_slot(i, runtime.caml_check_bound(a, i)[1 + i]);
350
350
125: if(match){
351
351
126: var str = match[1];
352
- 127: /*<<test.ml 72 24>>*/ /*<<test.ml 72 24>>*/ caml_call3
352
+ 127: /*<<test.ml:72: 24>>*/ /*<<test.ml:72: 24>>*/ caml_call3
353
353
128: (Stdlib_Printf[1], outchan, _c_, str);
354
354
129: }
355
- 130: /*<<test.ml 69 6>>*/ /*<<test.ml 69 6>>*/ var _g_ = i + 1 | 0;
355
+ 130: /*<<test.ml:69: 6>>*/ /*<<test.ml:69: 6>>*/ var _g_ = i + 1 | 0;
356
356
131: if(_f_ !== i){var i = _g_; continue;}
357
357
132: break;
358
358
133: }
359
359
134: }
360
360
135: return 0;
361
- 136: /*<<test.ml 73 10>>*/ }
361
+ 136: /*<<test.ml:73: 10>>*/ }
362
362
137: function compare(left, right, e1, e2){
363
- 138: /*<<test.ml 77 35>>*/ if(0 === e1[0]){
363
+ 138: /*<<test.ml:77: 35>>*/ if(0 === e1[0]){
364
364
139: var v1 = e1[1];
365
- 140: if(0 !== e2[0]) /*<<test.ml 80 23>>*/ return -1;
365
+ 140: if(0 !== e2[0]) /*<<test.ml:80: 23>>*/ return -1;
366
366
141: var v2 = e2[1];
367
- 142: /*<<test.ml 78 24>>*/ return /*<<test.ml 78 24>>*/ caml_call2
367
+ 142: /*<<test.ml:78: 24>>*/ return /*<<test.ml:78: 24>>*/ caml_call2
368
368
143: (left, v1, v2);
369
369
144: }
370
370
145: var v1$0 = e1[1];
371
- 146: if(0 === e2[0]) /*<<test.ml 81 23>>*/ return 1;
371
+ 146: if(0 === e2[0]) /*<<test.ml:81: 23>>*/ return 1;
372
372
147: var v2$0 = e2[1];
373
- 148: /*<<test.ml 79 26>>*/ return /*<<test.ml 79 26>>*/ caml_call2
373
+ 148: /*<<test.ml:79: 26>>*/ return /*<<test.ml:79: 26>>*/ caml_call2
374
374
149: (right, v1$0, v2$0);
375
- 150: /*<<test.ml 81 24>>*/ }
376
- 151: /*<<test.ml 75 16>>*/ var
377
- 152: /*<<test.ml 75 16>>*/ Either = [0, compare],
375
+ 150: /*<<test.ml:81: 24>>*/ }
376
+ 151: /*<<test.ml:75: 16>>*/ var
377
+ 152: /*<<test.ml:75: 16>>*/ Either = [0, compare],
378
378
153: Test =
379
379
154: [0,
380
380
155: executable_name,
0 commit comments