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