Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Dec 17, 2024
1 parent e300793 commit ab3e6a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
6 changes: 3 additions & 3 deletions compiler/tests-full/dune
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(rule
(targets stdlib.cma.js)
(enabled_if
(= %{ocaml_version} "5.2.0"))
(and (>= %{ocaml_version} "5.2") (< %{ocaml_version} "5.3")))
(action
(run
%{bin:js_of_ocaml}
Expand All @@ -14,7 +14,7 @@
(rule
(targets stdlib.cma.output.js)
(enabled_if
(= %{ocaml_version} "5.2.0"))
(and (>= %{ocaml_version} "5.2") (< %{ocaml_version} "5.3")))
(action
(with-stdout-to
%{targets}
Expand All @@ -23,7 +23,7 @@
(rule
(alias runtest)
(enabled_if
(= %{ocaml_version} "5.2.0"))
(and (>= %{ocaml_version} "5.2") (< %{ocaml_version} "5.3")))
(action
(diff stdlib.cma.expected.js stdlib.cma.output.js)))

Expand Down
35 changes: 22 additions & 13 deletions compiler/tests-full/stdlib.cma.expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -36136,8 +36136,8 @@
/*<<effect.ml:28:11>>*/ return 0;
var
x = /*<<effect.ml:22:16>>*/ param[2],
_i_ = /*<<effect.ml:25:12>>*/ caml_call1(Stdlib_Printexc[26], x),
msg = /*<<effect.ml:24:18>>*/ caml_call2(Stdlib_Printf[4], _a_, _i_);
_o_ = /*<<effect.ml:25:12>>*/ caml_call1(Stdlib_Printexc[26], x),
msg = /*<<effect.ml:24:18>>*/ caml_call2(Stdlib_Printf[4], _a_, _o_);
/*<<effect.ml:27:8>>*/ return [0, msg];
/*<<effect.ml:28:15>>*/ }
/*<<effect.ml:30:2>>*/ caml_call1(Stdlib_Printexc[9], printer);
Expand All @@ -36155,22 +36155,28 @@
"Effect.Continuation_already_resumed",
Continuation_already_resumed);
function continue$0(k, v){
var _h_ = /*<<effect.ml:62:11>>*/ caml_continuation_use_noexc(k);
function _g_(x){
var
_l_ = /*<<effect.ml:62:11>>*/ k[2],
_n_ = caml_continuation_use_noexc(k);
function _m_(x){
/*<<effect.ml:62:41>>*/ return x;
/*<<effect.ml:62:42>>*/ }
/*<<effect.ml:62:30>>*/ return jsoo_effect_not_supported() /*<<effect.ml:62:65>>*/ ;
}
function discontinue(k, e){
var _f_ = /*<<effect.ml:65:11>>*/ caml_continuation_use_noexc(k);
function _e_(e){
var
_i_ = /*<<effect.ml:65:11>>*/ k[2],
_k_ = caml_continuation_use_noexc(k);
function _j_(e){
/*<<effect.ml:65:41>>*/ throw caml_maybe_attach_backtrace(e, 1);
/*<<effect.ml:65:48>>*/ }
/*<<effect.ml:65:30>>*/ return jsoo_effect_not_supported() /*<<effect.ml:65:71>>*/ ;
}
function discontinue_with_backtrace(k, e, bt){
var _d_ = /*<<effect.ml:68:11>>*/ caml_continuation_use_noexc(k);
function _c_(e){
var
_f_ = /*<<effect.ml:68:11>>*/ k[2],
_h_ = caml_continuation_use_noexc(k);
function _g_(e){
/*<<effect.ml:68:41>>*/ caml_restore_raw_backtrace(e, bt);
throw caml_maybe_attach_backtrace(e, 0);
/*<<effect.ml:68:75>>*/ }
Expand All @@ -36187,8 +36193,9 @@
}
var
s =
/*<<effect.ml:87:12>>*/ caml_alloc_stack(handler[1], handler[2], effc);
/*<<effect.ml:88:4>>*/ return jsoo_effect_not_supported() /*<<effect.ml:88:23>>*/ ;
/*<<effect.ml:87:12>>*/ caml_alloc_stack(handler[1], handler[2], effc),
_e_ = /*<<effect.ml:88:4>>*/ 0;
return jsoo_effect_not_supported() /*<<effect.ml:88:23>>*/ ;
}
function try_with(comp, arg, handler){
function effc(eff, k, last_fiber){
Expand All @@ -36208,8 +36215,9 @@
function(e){
/*<<effect.ml:101:47>>*/ throw caml_maybe_attach_backtrace(e, 1);
/*<<effect.ml:101:54>>*/ },
effc);
/*<<effect.ml:102:4>>*/ return jsoo_effect_not_supported() /*<<effect.ml:102:23>>*/ ;
effc),
_d_ = /*<<effect.ml:102:4>>*/ 0;
return jsoo_effect_not_supported() /*<<effect.ml:102:23>>*/ ;
}
var
Deep =
Expand Down Expand Up @@ -36243,7 +36251,7 @@
var s = /*<<effect.ml:135:12>>*/ caml_alloc_stack(error, error, effc);
/*<<effect.ml:136:4>>*/ try{
/*<<effect.ml:136:10>>*/ jsoo_effect_not_supported();
var _b_ = /*<<effect.ml:136:26>>*/ 0;
var _b_ = /*<<effect.ml:136:26>>*/ 0, _c_ = 0;
}
catch(exn$0){
var exn = /*<<?>>*/ caml_wrap_exception(exn$0);
Expand All @@ -36263,6 +36271,7 @@
/*<<effect.ml:160:10>>*/ return caml_call1(f, k) /*<<effect.ml:161:42>>*/ ;
}
var
last_fiber = /*<<effect.ml:163:4>>*/ k[2],
stack =
/*<<effect.ml:164:16>>*/ runtime.caml_continuation_use_and_update_handler_noexc
(k, handler[1], handler[2], effc);
Expand Down

0 comments on commit ab3e6a5

Please sign in to comment.