Skip to content

Commit 4d84e15

Browse files
fgmccaberossberg
andauthored
Update interpreter/exec/eval.ml
Co-authored-by: Andreas Rossberg <[email protected]>
1 parent 8aded36 commit 4d84e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/exec/eval.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@ let rec step (c : config) : config =
418418

419419
| ResumeThrowRef (x, xls),
420420
Ref (ContRef ({contents = Some (n, ctxt)} as cont)) ::
421-
Ref (Exn.(ExnRef (Exn (tagt, args)))) :: vs ->
421+
v :: vs ->
422422
let hs = handle_table c xls in
423423
cont := None;
424-
vs, [Prompt (hs, ctxt ([], [Throwing (tagt, args) @@ e.at])) @@ e.at]
424+
vs, [Prompt (hs, ctxt ([v], [ThrowRef @@ e.at])) @@ e.at]
425425

426426
| Switch (x, y), Ref (NullRef _) :: vs ->
427427
vs, [Trapping "null continuation reference" @@ e.at]

0 commit comments

Comments
 (0)