Skip to content

Commit

Permalink
runtime: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Sep 19, 2024
1 parent 7ae6fd9 commit a93b73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function caml_raise_with_arg(tag, arg) {
//Provides: caml_raise_with_args (const, mutable)
//Requires: caml_maybe_attach_backtrace
function caml_raise_with_args(tag, args) {
throw caml_maybe_attach_backtrace([0, tag].concat(args));
throw caml_maybe_attach_backtrace([0, tag, ...args]);
}

//Provides: caml_raise_with_string (const, const)
Expand Down
4 changes: 1 addition & 3 deletions runtime/jslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ function caml_callback(f, args) {
const saved_fiber_stack = caml_fiber_stack;
let res = {
joo_tramp: f,
joo_args: args.concat((x) => {
return x;
}),
joo_args: [...args, (x) => x],
};
try {
caml_exn_stack = 0;
Expand Down

0 comments on commit a93b73b

Please sign in to comment.