@@ -313,86 +313,89 @@ end
313313 88: function format_backtrace_slot(pos, slot){
314314 89: function info(is_raise){
315315 90: /*<<test.ml:46:4>>*/ return is_raise
316- 91: ? 0 === pos ? cst_Raised_at : cst_Re_raised_at
317- 92: : 0 === pos ? cst_Raised_by_primitive_operat : cst_Called_from;
318- 93: /*<<test.ml:49:75>>*/ }
319- 94: /*<<test.ml:51:2>>*/ if(0 === slot[0]){
320- 95: /*<<test.ml:59:14>>*/ var
321- 96: _h_ = slot[5],
322- 97: _i_ = slot[4],
323- 98: _j_ = slot[3],
324- 99: _k_ = slot[6] ? cst_inlined : cst,
325- 100: _l_ = slot[2],
326- 101: _m_ = slot[7],
327- 102: /*<<test.ml:59:14>>*/ _n_ = info(slot[1]);
328- 103: /*<<test.ml:58:6>>*/ return [0,
329- 104: /*<<test.ml:58:11>>*/ caml_call8
330- 105: (Stdlib_Printf[4], _a_, _n_, _m_, _l_, _k_, _j_, _i_, _h_)];
331- 106: }
332- 107: if(slot[1]) /*<<test.ml:54:50>>*/ return 0;
333- 108: /*<<test.ml:56:51>>*/ /*<<test.ml:56:51>>*/ var _o_ = info(0);
334- 109: /*<<test.ml:56:8>>*/ return [0,
335- 110: /*<<test.ml:56:13>>*/ caml_call2(Stdlib_Printf[4], _b_, _o_)];
336- 111: /*<<test.ml:61:52>>*/ }
337- 112: function print_exception_backtrace(outchan, backtrace){
338- 113: /*<<test.ml:64:2>>*/ if(! backtrace)
339- 114: /*<<test.ml:66:6>>*/ return /*<<test.ml:66:6>>*/ caml_call2
340- 115: (Stdlib_Printf[1], outchan, _d_);
341- 116: var a = backtrace[1], _f_ = a.length - 2 | 0, _e_ = 0;
342- 117: if(_f_ >= 0){
343- 118: var i = _e_;
344- 119: for(;;){
345- 120: /*<<test.ml:70:14>>*/ /*<<test.ml:70:14>>*/ var
346- 121: match = format_backtrace_slot(i, runtime.caml_check_bound(a, i)[1 + i]);
347- 122: if(match){
348- 123: var str = match[1];
349- 124: /*<<test.ml:72:24>>*/ /*<<test.ml:72:24>>*/ caml_call3
350- 125: (Stdlib_Printf[1], outchan, _c_, str);
351- 126: }
352- 127: /*<<test.ml:69:6>>*/ /*<<test.ml:69:6>>*/ var _g_ = i + 1 | 0;
353- 128: if(Object.is(_f_, i)) break;
354- 129: i = _g_;
355- 130: }
356- 131: }
357- 132: return 0;
358- 133: /*<<test.ml:73:10>>*/ }
359- 134: function compare(left, right, e1, e2){
360- 135: /*<<test.ml:77:35>>*/ if(0 === e1[0]){
361- 136: var v1 = e1[1];
362- 137: if(0 !== e2[0]) /*<<test.ml:80:23>>*/ return -1;
363- 138: var v2 = e2[1];
364- 139: /*<<test.ml:78:24>>*/ return /*<<test.ml:78:24>>*/ caml_call2
365- 140: (left, v1, v2);
366- 141: }
367- 142: var v1$0 = e1[1];
368- 143: if(0 === e2[0]) /*<<test.ml:81:23>>*/ return 1;
369- 144: var v2$0 = e2[1];
370- 145: /*<<test.ml:79:26>>*/ return /*<<test.ml:79:26>>*/ caml_call2
371- 146: (right, v1$0, v2$0);
372- 147: /*<<test.ml:81:24>>*/ }
373- 148: /*<<test.ml:75:16>>*/ var
374- 149: /*<<test.ml:75:16>>*/ Either = [0, compare],
375- 150: Test =
376- 151: [0,
377- 152: executable_name,
378- 153: os_type,
379- 154: backend_type,
380- 155: 0,
381- 156: 32,
382- 157: 32,
383- 158: unix,
384- 159: win32,
385- 160: cygwin,
386- 161: max_array_length,
387- 162: max_floatarray_length,
388- 163: max_string_length,
389- 164: Unhandled,
390- 165: format_backtrace_slot,
391- 166: print_exception_backtrace,
392- 167: Either];
393- 168: runtime.caml_register_global(12, Test, " Test ");
394- 169: return;
395- 170: /*<<?>>*/ }
396- 171: (globalThis));
397- 172:
398- 173: //# sourceMappingURL=test.map |}]
316+ 91: ? Object.is(0, pos) ? cst_Raised_at : cst_Re_raised_at
317+ 92: : Object.is
318+ 93: (0, pos)
319+ 94: ? cst_Raised_by_primitive_operat
320+ 95: : 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
324+ 99: _h_ = slot[5],
325+ 100: _i_ = slot[4],
326+ 101: _j_ = slot[3],
327+ 102: _k_ = slot[6] ? cst_inlined : cst,
328+ 103: _l_ = slot[2],
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
333+ 108: (Stdlib_Printf[4], _a_, _n_, _m_, _l_, _k_, _j_, _i_, _h_)];
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>>*/ }
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
343+ 118: (Stdlib_Printf[1], outchan, _d_);
344+ 119: var a = backtrace[1], _f_ = a.length - 2 | 0, _e_ = 0;
345+ 120: if(_f_ >= 0){
346+ 121: var i = _e_;
347+ 122: for(;;){
348+ 123: /*<<test.ml:70:14>>*/ /*<<test.ml:70:14>>*/ var
349+ 124: match = format_backtrace_slot(i, runtime.caml_check_bound(a, i)[1 + i]);
350+ 125: if(match){
351+ 126: var str = match[1];
352+ 127: /*<<test.ml:72:24>>*/ /*<<test.ml:72:24>>*/ caml_call3
353+ 128: (Stdlib_Printf[1], outchan, _c_, str);
354+ 129: }
355+ 130: /*<<test.ml:69:6>>*/ /*<<test.ml:69:6>>*/ var _g_ = i + 1 | 0;
356+ 131: if(Object.is(_f_, i)) break;
357+ 132: i = _g_;
358+ 133: }
359+ 134: }
360+ 135: return 0;
361+ 136: /*<<test.ml:73:10>>*/ }
362+ 137: function compare(left, right, e1, e2){
363+ 138: /*<<test.ml:77:35>>*/ if(0 === e1[0]){
364+ 139: var v1 = e1[1];
365+ 140: if(0 !== e2[0]) /*<<test.ml:80:23>>*/ return -1;
366+ 141: var v2 = e2[1];
367+ 142: /*<<test.ml:78:24>>*/ return /*<<test.ml:78:24>>*/ caml_call2
368+ 143: (left, v1, v2);
369+ 144: }
370+ 145: var v1$0 = e1[1];
371+ 146: if(0 === e2[0]) /*<<test.ml:81:23>>*/ return 1;
372+ 147: var v2$0 = e2[1];
373+ 148: /*<<test.ml:79:26>>*/ return /*<<test.ml:79:26>>*/ caml_call2
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],
378+ 153: Test =
379+ 154: [0,
380+ 155: executable_name,
381+ 156: os_type,
382+ 157: backend_type,
383+ 158: 0,
384+ 159: 32,
385+ 160: 32,
386+ 161: unix,
387+ 162: win32,
388+ 163: cygwin,
389+ 164: max_array_length,
390+ 165: max_floatarray_length,
391+ 166: max_string_length,
392+ 167: Unhandled,
393+ 168: format_backtrace_slot,
394+ 169: print_exception_backtrace,
395+ 170: Either];
396+ 171: runtime.caml_register_global(12, Test, " Test ");
397+ 172: return;
398+ 173: /*<<?>>*/ }
399+ 174: (globalThis));
400+ 175:
401+ 176: //# sourceMappingURL=test.map |}]
0 commit comments